local.te (was Re: avc: denied { ioctl }?

Stephen Smalley sds at tycho.nsa.gov
Thu Jun 9 13:23:42 UTC 2005


On Thu, 2005-06-09 at 08:25 -0500, Hongwei Li wrote:
> Then, when I run "make load", I got:
> 
> # make load
> mkdir -p tmp
> ( cd domains/program/ ; for n in *.te ; do echo "define(\`$n')"; done ) >
> tmp/program_used_flags.te.tmp
> ( cd domains/misc/ ; for n in *.te ; do echo "define(\`$n')"; done ) >>
> tmp/program_used_flags.te.tmp
> mv tmp/program_used_flags.te.tmp tmp/program_used_flags.te
> make: *** No rule to make target `file_contexts/program/local.fc', needed by
> `file_contexts/file_contexts'.  Stop.
> 
> What should I put in file_contexts/program/local.fc?

That is why my message said to put local.te under domains/misc, not
domains/program.  For every .te file under domains/program, the Makefile
expects there to be a .fc file under file_contexts/program.  So, your
options are:
- move local.te under domains/misc as I said originally, or
- touch file_contexts/program/local.fc to create an empty file there to
satisfy the Makefile.

-- 
Stephen Smalley
National Security Agency




More information about the selinux mailing list