Re: how to transition a daemon to its own domain

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

 



On Fri, 2014-01-17 at 10:39 +0300, jiun bookworm wrote:
> I have been attempting to get my app to transition to a different
> domain unsuccessfully, 


> 
> init_daemon_domain(myapp_t, myapp_unit_file_t);

The transition does not go on myapp_unit_file_t instead it goes on
myapp_exec_t

> type myapp_exec_t;
> files_type(myapp_exec_t);

So something like this to get started:

type myapp_t;
type myapp_exec_t;
init_daemon_domain(myapp_t, myapp_exec_t)

As for the unit file, not sure off the top of my head but something like
this:

type myapp_unit_file_t;
systemd_unit_file(systemd_unit_file_t)

The unit file does not get executed, just read. So the transition cant
go on that file


--
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