1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 <2021> 2022 2023 2024 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 <2021> 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: setcap and nosuid |
From: | "Siddons, David via Tech-talk" <tech-talk at aps.anl.gov> |
To: | Michael Davidsaver <mdavidsaver at gmail.com> |
Cc: | EPICS Tech-Talk <tech-talk at aps.anl.gov> |
Date: | Tue, 2 Feb 2021 16:57:42 +0000 |
Hi David,
Yes, I saw that. Changing it doesn't seem to help:
sudo chmod g+w /dev/mem
ls -l /dev/mem
crw-rw---- 1 root kmem 1, 1 Feb 1 21:05 /dev/mem
./regrw R 1 ( a program which maps the FPGA registers to userspace)
Reading Register 1
Can't open /dev/mem
Pete.
From: Michael Davidsaver <mdavidsaver at gmail.com>
Sent: Tuesday, February 2, 2021 11:42 AM To: Siddons, David <siddons at bnl.gov> Cc: EPICS Tech-Talk <tech-talk at aps.anl.gov> Subject: Re: setcap and nosuid On 2/2/21 8:21 AM, Siddons, David wrote:
> I also tried putting the user in the kmem group, like /dev/mem: > > ls -l /dev/mem > crw-r----- 1 root kmem 1, 1 Feb 1 21:05 /dev/mem > > groups hera > hera : hera kmem sudo i2c Looking twice I notice that the group write permission is not granted. |