Dealing with nested subjects
Posted: Mon Jun 20, 2011 4:26 am
hi,
I'm trying to use nested subject for gpg executed by mutt:
ACL:
grsec:
Without "subject /usr/bin/gpg2" execution of gpg is logged as "(mcanswer:U:/)". Why nested subject mutt:gpg2 isn't applied in this case?
gradm v2.2.1
kernel 2.6.36-hardened-r9 with gentoo patchset
best regards
Kris
I'm trying to use nested subject for gpg executed by mutt:
ACL:
- Code: Select all
subject / o {
...
/usr/bin rx
/home/mcanswer/.gnupg h
}
subject /usr/bin/mutt {
/home/mcanswer/.maildir rwcd
/usr/bin/gpg2 rx
-CAP_ALL
bind disabled
connect disabled
sock_allow_family all
}
subject /usr/bin/gpg2
subject /usr/bin/mutt:/usr/bin/gpg2 {
/home/mcanswer/.gnupg rwcd
/lib rxi
/usr/lib rxi
/etc/ld.so.cache r
/proc/meminfo r
-CAP_ALL
bind disabled
connect disabled
sock_allow_family unix inet
}
grsec:
- Code: Select all
(mcanswer:U:/usr/bin/gpg2) denied access to hidden file /home/mcanswer/.gnupg/gpg.conf by /usr/bin/gpg2[gpg:8876] uid/euid:1000/1000 gid/egid:1000/1000, parent /usr/bin/mutt[mutt:18358] uid/euid:1000/1000 gid/egid:1000/1000
Without "subject /usr/bin/gpg2" execution of gpg is logged as "(mcanswer:U:/)". Why nested subject mutt:gpg2 isn't applied in this case?
gradm v2.2.1
kernel 2.6.36-hardened-r9 with gentoo patchset
best regards
Kris