Re: sys-apps/pcsc-lite needs to access /sys

Sven Vermeulen <[email protected]>
Newsgroups gmane.linux.gentoo.hardened
Message-ID <CAPzO=NyqSGB4xYguH58ugfC1iFE+9tP74+08JkZRnHmu=95Jnw@mail.gmail.com>
Isn't there any mount option that you can pass so that all members of
a certain group can still access sysfs? Perhaps "gid="?

Wkr,
  Sven Vermeulen

On Sun, Feb 9, 2014 at 1:35 PM, Luis Ressel <[email protected]> wrote:
> Hello,
>
>
> I'm currently experimenting with OpenPGP smartcards. For those, I
> need sys-apps/pcsc-lite, which features a daemon (pcscd). This daemon
> has its own user and doesn't run with root permissions. However, it
> needs to access some files in /sys which are only accessible by root
> due to GRKERNSEC_SYSFS_RESTRICT.
>
> I went with the following solution:
> chown root:pcscd /usr/sbin/pcscd
> chmod 0710 /usr/sbin/pcscd
> filecap /usr/sbin/pcscd dac_read_search
>
> Should I just propose the maintainer to add this to the ebuild
> (conditional on a "hardened" USE flag), or would another course of
> action be preferred?
>
>
> Regards,
> Luis Ressel
>
>
> --
> Luis Ressel <[email protected]>
> GPG fpr: F08D 2AF6 655E 25DE 52BC  E53D 08F5 7F90 3029 B5BD
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.