[redhat-lspp] Re: [PATCH 2/3] Re: MLS enforcing PTYs, sshd, and newrole

Stephen Smalley sds at tycho.nsa.gov
Fri Jan 5 18:34:54 UTC 2007


On Fri, 2007-01-05 at 12:05 -0500, Daniel J Walsh wrote:
> First libselinux-rhat patch was broken.  Needs to only check the context 
> type.
> 
> more /etc/selinux/mls/contexts/securetty_contexts
> sysadm_tty_device_t
> staff_tty_device_t
> user_tty_device_t

Use getline() instead of fgets() to gain the benefit of automatically
allocated buffers.  See init_selinux_config() for example.
-- 
Stephen Smalley
National Security Agency




More information about the redhat-lspp mailing list