* About compile an appplication's policy
@ 2010-11-05 2:19 sure
2010-11-05 12:07 ` Christopher J. PeBenito
0 siblings, 1 reply; 3+ messages in thread
From: sure @ 2010-11-05 2:19 UTC (permalink / raw)
To: SELinux
[-- Attachment #1: Type: text/plain, Size: 1008 bytes --]
Hi :
I am trying to create my own policy module, but i met with a problem:
after i finished the myapp.te, myapp.if and myapp.fc in my directory named
mypolicy, I copied the uncompress refpolicy-20070928.tar.bz2 dir
../refpolicy/doc/Makefile.example to ../mypolicy and renamed Makefile, then
i tried to "make" , it gave such wrong info:
Makefile:8: /usr/share/selinux/devel/mls/include/Makefile: No such file or
directory
make: *** No rule to make target
`/usr/share/selinux/devel/mls/include/Makefile'. Stop.
then i check the dir /usr/share/selinux/devel/mls/ , there are many *.pp
files in, but no directory named include, should i install some other
package or find it in somewhere else.
here is info of my selinux
[root@rfsos pol]# sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: permissive
Mode from config file: permissive
Policy version: 21
Policy from config file: mls
br.
mengshuo
[-- Attachment #2: Type: text/html, Size: 1100 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: About compile an appplication's policy
2010-11-05 2:19 About compile an appplication's policy sure
@ 2010-11-05 12:07 ` Christopher J. PeBenito
2010-11-08 1:46 ` sure
0 siblings, 1 reply; 3+ messages in thread
From: Christopher J. PeBenito @ 2010-11-05 12:07 UTC (permalink / raw)
To: sure; +Cc: SELinux
On 11/04/10 22:19, sure wrote:
> Hi :
> I am trying to create my own policy module, but i met with a
> problem: after i finished the myapp.te, myapp.if and myapp.fc in my
> directory named mypolicy, I copied the uncompress
> refpolicy-20070928.tar.bz2 dir ../refpolicy/doc/Makefile.example to
> ../mypolicy and renamed Makefile, then i tried to "make" , it gave such
> wrong info:
>
> Makefile:8: /usr/share/selinux/devel/mls/include/Makefile: No such file
> or directory
> make: *** No rule to make target
> `/usr/share/selinux/devel/mls/include/Makefile'. Stop.
>
> then i check the dir /usr/share/selinux/devel/mls/ , there are many *.pp
> files in, but no directory named include, should i install some other
> package or find it in somewhere else.
What version of Red Hat/Fedora are you using? I believe some of the
older ones had these files in the selinux-policy-devel package.
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: About compile an appplication's policy
2010-11-05 12:07 ` Christopher J. PeBenito
@ 2010-11-08 1:46 ` sure
0 siblings, 0 replies; 3+ messages in thread
From: sure @ 2010-11-08 1:46 UTC (permalink / raw)
To: Christopher J. PeBenito; +Cc: SELinux
[-- Attachment #1: Type: text/plain, Size: 1414 bytes --]
I use RHEL 5.0 here, there is no devel package. i will try to download one.
Another question : Am i using the conventional way to create a policy
module? i used polgen several times, but sometimes after you do the e.g.
"myapp.sh - -update" untill "no new avcs found" you still need to modify the
scripts .
On Fri, Nov 5, 2010 at 8:07 PM, Christopher J. PeBenito <
cpebenito@tresys.com> wrote:
> On 11/04/10 22:19, sure wrote:
> > Hi :
> > I am trying to create my own policy module, but i met with a
> > problem: after i finished the myapp.te, myapp.if and myapp.fc in my
> > directory named mypolicy, I copied the uncompress
> > refpolicy-20070928.tar.bz2 dir ../refpolicy/doc/Makefile.example to
> > ../mypolicy and renamed Makefile, then i tried to "make" , it gave such
> > wrong info:
> >
> > Makefile:8: /usr/share/selinux/devel/mls/include/Makefile: No such file
> > or directory
> > make: *** No rule to make target
> > `/usr/share/selinux/devel/mls/include/Makefile'. Stop.
> >
> > then i check the dir /usr/share/selinux/devel/mls/ , there are many *.pp
> > files in, but no directory named include, should i install some other
> > package or find it in somewhere else.
>
> What version of Red Hat/Fedora are you using? I believe some of the
> older ones had these files in the selinux-policy-devel package.
>
> --
> Chris PeBenito
> Tresys Technology, LLC
> www.tresys.com | oss.tresys.com
>
[-- Attachment #2: Type: text/html, Size: 1960 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-11-08 1:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-05 2:19 About compile an appplication's policy sure
2010-11-05 12:07 ` Christopher J. PeBenito
2010-11-08 1:46 ` sure
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.