Re: type question - samba script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/17/2013 10:09 PM, Daniel J Walsh wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/17/2013 03:57 PM, m.roth@xxxxxxxxx wrote:
Hi. We've got a samba shell script. It was in /etc/samba, and we got a ton
of AVC's (we are in permissive, CentOS 6.4). It just got moved to
/usr/local/sbin, ditto. Currently, it looks like
system_u:object_r:samba_etc_t:s0. What *is* the correct type for it?

mark

-- selinux mailing list selinux@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/selinux

bin_t most likely.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlFvAZYACgkQrlYvE4MpobOHFQCgyb7r1Flr+0XAnxp0Dh4zEsFm
ksEAoJdNrVIeBoS/QhsL3Q2V+28q3i6t
=vzu6
-----END PGP SIGNATURE-----
--
selinux mailing list
selinux@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/selinux
You can check it using "matchpathcon"

# matchpathcon /usr/local/sbin/<your_script>

To fix labeling you can use the "restorecon" tool.

# restorecon -v /usr/local/sbin/<your_script>
--
selinux mailing list
selinux@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/selinux





[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux