Skip to contentSkip to conversation

getty: Apply auth_use_nsswitch interface

PATCH New Luis Ressel 2 participants 3 messages Sep 12, 2017 – Sep 13, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 getty: Apply auth_use_nsswitch interface

From: Jason Zaman <[email protected]>

agetty looks up the tty group in /etc/groups

---
 policy/modules/system/getty.te | 1 +
 1 file changed, 1 insertion(+)
policy/modules/system/getty.te +1 -0
index 6d3c4284a..3a7564ab6 100644
@@ -82,6 +82,7 @@ term_setattr_unallocated_ttys(getty_t)
 term_setattr_console(getty_t)
 
 auth_rw_login_records(getty_t)
+auth_use_nsswitch(getty_t)
 
 init_rw_utmp(getty_t)
 
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 getty: Apply auth_use_nsswitch interface

Quoted 12 lines · Luis Ressel via refpolicy

From: Jason Zaman <[email protected]>

agetty looks up the tty group in /etc/groups

---
  policy/modules/system/getty.te | 1 +
  1 file changed, 1 insertion(+)
policy/modules/system/getty.te +0 -0
index 6d3c4284a..3a7564ab6 100644

policy/modules/system/getty.te term_setattr_unallocated_ttys(getty_t) · line 85

Quoted 4 lines
policy/modules/system/getty.te +1 -0
@@ -82,6 +82,7 @@ term_setattr_unallocated_ttys(getty_t)
  term_setattr_console(getty_t)
 
  auth_rw_login_records(getty_t)
+auth_use_nsswitch(getty_t)

Nsswitch is such a heavy set of permissions. I'm inclined to simply add the needed permissions instead blanketing it with auth_use_nsswitch. There's no reason for it ever to go off to one of the other sources for the tty group.

Signature · 1 line
Chris PeBenito
#2 lore raw

PATCH 1/1 getty: Apply auth_use_nsswitch interface

Quoted 15 lines · On Tue, 12 Sep 2017 19:17:19 -0400 Chris PeBenito via refpolicy…
Quoted 14 lines · Luis Ressel via refpolicy

From: Jason Zaman <[email protected]>

agetty looks up the tty group in /etc/groups

---
  policy/modules/system/getty.te | 1 +
  1 file changed, 1 insertion(+)
(quoted diff) +0 -0

b/policy/modules/system/getty.te index 6d3c4284a..3a7564ab6 100644

policy/modules/system/getty.te +0 -0
@@ -82,6 +82,7 @@ term_setattr_unallocated_ttys(getty_t)
  term_setattr_console(getty_t)
 
Quoted 9 lines

policy/modules/system/getty.te term_setattr_unallocated_ttys(getty_t) · line 85

Quoted 2 lines
policy/modules/system/getty.te +1 -0
  auth_rw_login_records(getty_t)
+auth_use_nsswitch(getty_t)  

Nsswitch is such a heavy set of permissions. I'm inclined to simply add the needed permissions instead blanketing it with auth_use_nsswitch. There's no reason for it ever to go off to one of the other sources for the tty group.

Okay, I retract this patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20170913/45fc0d77/attachment.bin