On Tue, 2012-09-18 at 12:32 -0400, Daniel J Walsh wrote: > On 09/18/2012 09:45 AM, Stephen Smalley wrote: > > On Sat, 2012-09-15 at 02:22 +0000, Serge E. Hallyn wrote: > >> Quoting Daniel J Walsh (dwalsh@xxxxxxxxxx): > >>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > >>> > >>> On 09/13/2012 10:08 AM, Stephen Smalley wrote: > >>>> Several test cases require the ability to read /etc/passwd to look > >>>> up usernames. Recent Fedora introduced a separate type on > >>>> /etc/passwd and therefore we need to add an interface call to > >>>> test_global.te. Fixes three test failures on Fedora 17. > >>>> > >>>> Signed-off-by: Stephen Smalley <sds@xxxxxxxxxxxxx> --- > >>>> policy/test_global.te | 2 ++ 1 file changed, 2 insertions(+) > >>>> > >>>> diff --git a/policy/test_global.te b/policy/test_global.te index > >>>> 77121ae..fdfd291 100644 --- a/policy/test_global.te +++ > >>>> b/policy/test_global.te @@ -88,3 +88,5 @@ > >>>> selinux_compute_access_vector(testdomain) > >>>> selinux_compute_create_context(testdomain) > >>>> selinux_compute_relabel_context(testdomain) > >>>> selinux_compute_user_contexts(testdomain) + > >>>> +auth_read_passwd(testdomain) > >>>> > >>> Probably should use > >>> > >>> auth_use_nsswitch(testdomain) > >>> > >>> Since this will handle cases where users are listed in ldap or use > >>> sssd. > >> > >> Stephen, would you like that instead? > > > > No, it doesn't work - you cannot pass an attribute name to that interface. > > > > Ahh yes, you can not assign an attribute to an attribute. That is right up > there with no assigning an attribute within a boolean as my least liked things > about our policy compiler. > > > I guess you need to add auth_use_nsswitch() for each type that gets set to > test_domain. That would be rather painful. For now, let's just use auth_read_passwd(testdomain). Works for me. auth_use_nsswitch() might have undesirable side effects, like allowing every test domain network access. Which would then prevent testing enforcement of the socket permission checks. -- Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.