Re: Adding new type

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

 



Simon Sekidde <ssekidde@xxxxxxxxxx>:

>> I am a developer creating a new type of service. Let's call it
>> "abcd." Am I expected to have my RPM package create a new type
>> "abcd_exec_t"?
>
> This would have to be defined in the type enforcing (.te) file for
> "abcd"

I take it the answer to my question is, Yes. Thank you.

Now, I suppose the process is to create abcd.te in my source code. I
then compile the .te file as follows:

   checkmodule -M -m -o abcd.mod abcd.te
   semodule_package -o abcd.pp -m abcd.mod

I include abcd.pp in my RPM package and have its postinstall section
execute:

   semodule -i abcd.pp

Right?

I will also need to specify an abcd.fc. What do I do with the file? Is
it magically imported by checkmodule?


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