linux gid for epiphany driver

Forum about Parallella boot process, linux kernel, distros, SD-cards, etc.

linux gid for epiphany driver

Postby peteasa » Sat Jan 14, 2017 1:42 pm

I am trying to choose an appropriate gid for the epiphany/elink0 driver.. (@olajep.. perhaps elink0 and mesh0 should be in different groups?)... At the moment by default the group on my system is 0 (root) so only root can access the elink connection unless I open up the permissions. I am thinking of using 464 and naming the group "epiphany". Not sure what the official release gid and permissions are for /dev/epiphany/*.. can someone have a quick look and let me know? In choosing the name /etc/login.defs contains hints about what range of numbers is suitable.. also the GID database https://wiki.archlinux.org/index.php/De ... D_Database is also of use indicating numbers not to use.
Peter.
User avatar
peteasa
 
Posts: 117
Joined: Fri Nov 21, 2014 7:04 pm

Re: linux gid for epiphany driver

Postby olajep » Sun Jan 15, 2017 2:40 pm

Hi Peter,

Hard to find a standard group that would fit the purpose here.
I suggest to name the group "epiphany" and use permission 0660.
You need both read and write permissions.

Makes sense?

// Ola
_start = 266470723;
olajep
 
Posts: 139
Joined: Mon Dec 17, 2012 3:24 am
Location: Sweden

Re: linux gid for epiphany driver

Postby olajep » Sun Jan 15, 2017 2:49 pm

... in Parabuntu any user can access the epiphany device:

Code: Select all
$ ls -l /dev/epiphany/*
crw-rw-rw- 1 root root 243, 0 Jan  9 15:24 /dev/epiphany/elink0
crw-rw-rw- 1 root root 243, 1 Jan  9 15:24 /dev/epiphany/mesh0
_start = 266470723;
olajep
 
Posts: 139
Joined: Mon Dec 17, 2012 3:24 am
Location: Sweden


Return to Linux/U-Boot

Who is online

Users browsing this forum: No registered users and 1 guest

cron