]> git.ipfire.org Git - people/stevee/selinux-policy.git/commitdiff
Merge branch 'master' of ssh://git.fedorahosted.org/git/selinux-policy
authorDan Walsh <dwalsh@redhat.com>
Fri, 3 Jun 2011 15:51:01 +0000 (11:51 -0400)
committerDan Walsh <dwalsh@redhat.com>
Fri, 3 Jun 2011 15:51:01 +0000 (11:51 -0400)
policy/modules/services/rwho.te
policy/modules/system/userdomain.if

index 01fc6f654f4e1eb95e7558e792463430a5c8fe3e..0ba4495b055cabdf70864619d2933717a885201c 100644 (file)
@@ -61,4 +61,4 @@ miscfiles_read_localization(rwho_t)
 
 sysnet_dns_name_resolve(rwho_t)
 
-userdom_getattr_user_ttys(rwho_t)
+userdom_getattr_user_terminals(rwho_t)
index d7d8b53bbe8e7618bb0c03851101746152568447..64d9bb78e0412ad9c07cc2850d025d12b1e43e00 100644 (file)
@@ -3093,6 +3093,25 @@ interface(`userdom_dontaudit_use_user_terminals',`
        dontaudit $1 user_devpts_t:chr_file rw_term_perms;
 ')
 
+
+########################################
+## <summary>
+##     Get attributes of user domain tty and pty.
+## </summary>
+## <param name="domain">
+##     <summary>
+##     Domain allowed access.
+##     </summary>
+## </param>
+#
+interface(`userdom_getattr_user_terminals',`
+       gen_require(`
+               type user_tty_device_t, user_devpts_t;
+       ')
+
+       allow $1 { user_tty_device_t user_devpts_t }:chr_file getattr_chr_file_perms;
+')
+
 ########################################
 ## <summary>
 ##     Execute a shell in all user domains.  This