07.06.2014 Views

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

## Domain allowed to transition.<br />

## <br />

#<br />

interface(`myapp_domtrans',`<br />

gen_require(`<br />

type myapp_t, myapp_exec_t;<br />

')<br />

')<br />

domtrans_pattern($1,myapp_exec_t,myapp_t)<br />

########################################<br />

## <br />

## Read myapp log files.<br />

## <br />

## <br />

## Domain allowed to read the log files.<br />

## <br />

#<br />

interface(`myapp_read_log',`<br />

gen_require(`<br />

type myapp_log_t;<br />

')<br />

')<br />

logging_search_logs($1)<br />

allow $1 myapp_log_t:file r_file_perms;<br />

Example 14.3<br />

example.if File<br />

DOCUMENTATION<br />

Explanations about the<br />

reference policy<br />

The reference policy evolves like any free soware project: based on volunteer<br />

contributions. The project is hosted by Tresys, one of the most active companies<br />

in the SELinux field. Their wiki contains explanations on how the rules<br />

are structured and how you can create new ones.<br />

➨ http://oss.tresys.com/projects/refpolicy/wiki/GettingStarted<br />

14.4.4.3. Writing a .te File<br />

Have a look at the example.te file:<br />

396 The Debian Administrator's Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!