Re: svirt_lxc_net_t -> container_t and nsswitch_domain

Lukas Vrabec <[email protected]>
Newsgroups gmane.linux.redhat.fedora.selinux
Organization Red Hat, Inc.
Message-ID <[email protected]>
On 05/23/2018 11:50 PM, Dustin C. Hatch wrote:
> I recently upgraded some of my Docker hosts to CentOS 7.5 and started
> getting "Permission Denied" errors inside of containers. I traced this
> down to any container that mounts and uses /etc/passwd from the host (so
> that UIDs inside the container map to the same username as on the host),
> because the SELinux policy in CentOS 7.5 does not allow the new
> continer_t domain to read passwd_file_t.
> 

Yes we renamed svirt_lxc_net_t domain for container to container_t,
which make more sense.

Container SELinux security module is not distribution policy, so for
this reason adding Dan Walsh to our discussion.

Dan,

container_t don't have auth_use_nsswitch in container policy, is it bug
or you removed it for some reason?

Thanks,
Lukas.

> The old svirt_lxc_net_t domain had the nsswitch_domain attribute, while
> its replacement, container_t, does not. I cannot find any reference for
> this change, so I was wondering if it was deliberate or not. If it was
> deliberate, what would be the consequences if I were to make a local
> policy change to add that attribute back? If it was not deliberate, I
> would be happy to open a ticket in Bugzilla.
> 
> Thanks,
> 


-- 
Lukas Vrabec
Software Engineer, Security Technologies
Red Hat, Inc.

_______________________________________________
selinux mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/[email protected]/message/G7XA552SJ3U2AU7WG4FT4UXG2VRDMVUV/
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEE3wrP3ArXoyYgAS7LRyAaxC8pzgYFAlsIHSMACgkQRyAaxC8p
zgZ6rgf8DbWRICGP9vGMuXBx6m/HWZcDfknhunYKVm7NZFXvNlugwSBKNFyt0xFH
B9AY5oCxHFTVpnZ+GSDmHoE8ZlTB1Zq9PEymS/ieMWve7ZQUx1erd6UVRjGhWkNn
iCIrdmOj3uEQLu48FpQDtfGqRufDAKYuzfjqSnlgiTjHwpswtF1tn0sAeIQ5QMK9
78y83v1Gfg+tnQjxCt2mY7r211zeaY/f/jKYgqVrpYfNXHFQbK4cFqvTsKhnELHK
jYWzcOaD73e9QkHCcFRGpw5UNjJIGhnIp84EHT+f+Z7KaZla9rbzTKbE12wKcprj
xAxRgdxx20cfV2Sw7gfsRxd7G9pczA==
=pfZI
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.