- Code: Select all
-CAP_ALL
+CAP_CHOWN
+CAP_DAC_OVERRIDE
+CAP_FOWNER
+CAP_FSETID
+CAP_SETGID
+CAP_SETUID
+CAP_SYS_TTY_CONFIG
These rules worked fine for me in the past, but under Linux 3.1 my system freezes when (1) the RBAC system is enabled and (2) a non-root user tries to log in.
It looks like all policies that use -CAP_ALL and +CAP_DAC_OVERRIDE cause freezes in non-root contexts. The freezes no longer occur when +CAP_DAC_READ_SEARCH is added to the affected policies.
Tested versions:
- Linux-2.6.32.49 + grsecurity-2.2.2-2.6.32.49-201111262001 => OK
- Linux-3.0.8 + grsecurity-2.2.2-3.0.8-201110250925 => OK
- Linux-3.1.3 + grsecurity-2.2.2-3.1.3-201111262001 => Freeze
- Linux-3.1.4 + grsecurity-2.2.2-3.1.4-201112021740 => Freeze
Since it works with previous kernel versions, a bug might have crept into the grsecurity patches for Linux 3.1.x. Any ideas?