Skip to contentSkip to conversation

pty creation type

refpolicy Martin Orr 2 participants 2 messages Nov 13, 2008

lore
Share & tools
lore

Martin Orr

author
#0 lore raw

All my ptys are now created as devpts_t. I think this got lost in the ubac conversion.

modules/system/userdomain.if renamed from modules/system/userdomain.if.orig +1 -0
Index: policy/modules/system/userdomain.if
===================================================================
@@ -57,6 +57,7 @@
 	dontaudit $1_t self:socket create;
 
 	allow $1_t user_devpts_t:chr_file { setattr rw_chr_file_perms };
+	term_create_pty($1_t, user_devpts_t)
 	# avoid annoying messages on terminal hangup on role change
 	dontaudit $1_t user_devpts_t:chr_file ioctl;
 
Signature · 1 line
Martin Orr
#1 lore raw
Quoted 2 lines · Martin Orr

All my ptys are now created as devpts_t. I think this got lost in the ubac conversion.

Merged.

Quoted 12 lines

Index: policy/modules/system/userdomain.if
===================================================================

modules/system/userdomain.if renamed from modules/system/userdomain.if.orig +1 -0
@@ -57,6 +57,7 @@
 	dontaudit $1_t self:socket create;
 
 	allow $1_t user_devpts_t:chr_file { setattr rw_chr_file_perms };
+	term_create_pty($1_t, user_devpts_t)
 	# avoid annoying messages on terminal hangup on role change
 	dontaudit $1_t user_devpts_t:chr_file ioctl;
 
Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150