commit: 1df21420237c54a402798d9cff437c32017c714e
Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
AuthorDate: Fri Aug 22 19:05:19 2014 +0000
Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org>
CommitDate: Fri Aug 22 19:05:19 2014 +0000
URL:
http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=1df21420
Allow sysadmins to interact with kernel (for instance for lsusb command)
---
policy/modules/system/userdomain.if | 2 ++
1 file changed, 2 insertions(+)
diff --git a/policy/modules/system/userdomain.if
b/policy/modules/system/userdomain.if
index 5b26aef..78cb3ad 100644
--- a/policy/modules/system/userdomain.if
+++ b/policy/modules/system/userdomain.if
@@ -1245,6 +1245,8 @@ template(`userdom_admin_user_template',`
ifdef(`distro_gentoo',`
# Grant block_suspend capability2 to administrators, this
annoys the heck out of me
allow $1_t self:capability2 { block_suspend };
+ # Allow admins to interact with kernel, for instance using
lsusb command
+ allow $1 self:netlink_kobject_uevent_socket create_socket_perms;
# Moved out of files_relabel_non_auth_files as it cannot be
used in tunable_policy otherwise
seutil_relabelto_bin_policy($1_t)
')