-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
This program takes three inputs.
The executable that init will exec.
The directory where the executable would create the object. (fifo_file,
sock_file, file ...)
The "type" of the object to be created
In order to test this, you need to tell setsockcon the context to run as.
runcon system_u:system_r:init_t:s0 ./setsockcon
/usr/sbin/avahi-daemon
/var/run/avahi-daemon sock_file
/usr/sbin/avahi-daemon system_u:system_r:avahi_t:s0
system_u:object_r:avahi_var_run_t:s0
runcon system_u:system_r:init_t:s0 ./setsockcon /usr/sbin/httpd
/var/run file
/usr/sbin/httpd system_u:system_r:httpd_t:s0
system_u:object_r:httpd_var_run_t:s0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Fedora -
http://enigmail.mozdev.org/
iEYEARECAAYFAkxEproACgkQrlYvE4MpobOMMwCeLXC/HaUe5RAOgY2J3x3xo0if
SvEAoKKnea5L8AJjFpewdOGNSDIEkhgs
=x5z6
-----END PGP SIGNATURE-----