new gradm and "object does not exist in role default" ?
Posted: Sat Nov 26, 2011 11:22 am
I've downloaded gradm-2.2.2-201111011031 and started getting following warnings which I do not understand - it worked without warnings in previous 2.2.2 version (which I think was gradm-2.2.2-201109281554):
If I look in the policy, for "::kernel::" warning, line 1370 is last line in the file (which also happens to be empty)! For others, it is always an object which happens to be symlink:
"/dev/cdrom r" is on line 204 that gradm complains above.
on disk it looks like this:
any idea what changed and what I need to fix (or if that is a new bug in gradm) ?
Thanks
- Code: Select all
Warning: object does not exist in role :::kernel:::, subject /usr/bin/updatedb for the target of the symlink object /usr/bin/updatedb specified on line 1370 of /etc/grsec/policy
Warning: object does not exist in role :::kernel:::, subject /usr/sbin/a2ensite for the target of the symlink object /usr/sbin/a2ensite specified on line 1370 of /etc/grsec/policy.
Warning: object does not exist in role virtual, subject / for the target of the symlink object /usr/sbin/sendmail specified on line 1017 of /etc/grsec/policy.
Warning: object does not exist in role default, subject / for the target of the symlink object /dev/cdrom specified on line 204 of /etc/grsec/policy.
If I look in the policy, for "::kernel::" warning, line 1370 is last line in the file (which also happens to be empty)! For others, it is always an object which happens to be symlink:
- Code: Select all
role default G
subject /
/ r
/dev
[...]
/dev/fd0 r
/dev/cdrom r
/dev/mem h
[...]
"/dev/cdrom r" is on line 204 that gradm complains above.
on disk it looks like this:
- Code: Select all
# ls -l /usr/bin/updatedb
lrwxrwxrwx 1 root root 26 Jun 5 2009 /usr/bin/updatedb -> /etc/alternatives/updatedb
# ls -l /etc/alternatives/updatedb
lrwxrwxrwx 1 root root 25 Aug 19 19:17 /etc/alternatives/updatedb -> /usr/bin/updatedb.mlocate
# ls -l /usr/bin/updatedb.mlocate
-rwxr-xr-x 1 root root 36736 Oct 28 2008 /usr/bin/updatedb.mlocate
# ls -l /dev/cdrom
lrwxrwxrwx 1 root root 3 Jan 23 2009 /dev/cdrom -> hdd
# ls -l /dev/hdd
brw-rw---- 1 root disk 22, 64 Mar 14 2002 /dev/hdd
any idea what changed and what I need to fix (or if that is a new bug in gradm) ?
Thanks