I just played with subject mode Z and got a kernel crash when I logged in as a user which had the following policy in its user role specification
- Code: Select all
subject /bin/ls {
/usr h
bind disabled
connect disabled
}
subject /bin/ls Z {
/usr/src r
bind disabled
connect disabled
}
System info: Gentoo 3.13.10-hardened, gradm v3.0
I just got the following message on the screen
- Code: Select all
ce5035c0 ce4fcac0 ce4f8880 00000312 001abebb 000003e8 00200282 ce551400
ce551a80 ce5035c0 0004ddb0 ce551400 00000000 ce551a80 00000312 0003e879
00000312 00000312 00000060 51777e90 ce503764 003961e3 00000312 00000312
Call Trace:
[<001abebb>] ? gr_set_role_labe1+0x5b/0x1b0
[<00200282>] ? acpi_pci_link_get_current+0x56/0xbe
[<0004ddb0>] ? __commit_creds+0x50/0x180
[<0003e879>] ? SyS_setresuid+0x129/0x140
[<003961e3>] ? syscall_call+0x7/0xb
[<00200246>] ? acpi_pci_link_get_current+0x1a/0xbe
[<0039007b>] ? bug_at+0x38/0x4c
[<00200246>] ? acpi_pci_link_get_current+0x1a/0xbe
[<0000b069>] ? pax_randomize_kstack+0x39/0x40
[<00396204>] ? restore_all_pax+0x7/0x7
[<00210202>] ? acpi_hw_legacy_sleep+0x136/0x156
Code: 40 20 e8 9e fb ff ff 85 c0 75 8a al cc 4c 09 c2 89 e9 8b 50 7c 8b 40 14 8b 92 84 00 00 00 8b 40 20 e8 7f fb ff ff e9 6a ff ff ff <01> Ob 90 8d b4 26 00 00 00 00 57 56 89 c6 53 83 ec 08 8b ld 6c
EIP: [<001aaf76>] chk_subj_label+0xe6/0x10 SS:ESP 0068:ce68de9c
---[ end trace 8cbc463235c55e34 ]---
Kernel panic - not syncing: grsec: halting the system due to suspicious kernel crash caused by root
atkbd serio0: Spurious ACE on isa0060/serio0. Some program might be trying to access hardware directly.
The crash is repeatable.
Regards