All of lore.kernel.org
 help / color / mirror / Atom feed
* Problems with install
@ 2001-10-24 17:15 White, Tom (AZ15)
  2001-10-24 19:23 ` Stephen Smalley
  0 siblings, 1 reply; 13+ messages in thread
From: White, Tom (AZ15) @ 2001-10-24 17:15 UTC (permalink / raw)
  To: selinux

I am trying to implement the SELinux patch on a Red Hat 7.1 box. I did the
Kernel build following the documentation on the NSA web site.  I got to step
2 in the INSTALLING section and when I do a make install in the module
directory I get the following output:

[root@warthog module]# make install
rm -f selinux_plug/include/asm selinux_plug/arch/machine
( cd selinux_plug/include ; ln -sf asm-i386 asm)
( cd selinux_plug/arch ; ln -sf i386 machine)
mkdir -p /usr/local/selinux/flask
mkdir -p /usr/local/selinux/include/linux/flask
mkdir -p /usr/local/selinux/include/asm-i386/flask
mkdir -p /usr/local/selinux/bin
( cd /usr/local/selinux/include; ln -sf asm-i386 asm)
cd selinux_plug/flask; install access_vectors security_classes initial_sids
/usr/local/selinux/flask
cd selinux_plug/include/linux/flask; install *.h
/usr/local/selinux/include/linux/flask
cd selinux_plug/include/asm/flask; install *.h
/usr/local/selinux/include/asm/flask
cd ../../lsm/include/asm; install unistd.h /usr/local/selinux/include/asm
cd selinux_plug/ss; install checkpolicy /usr/local/selinux/bin
install: cannot stat `checkpolicy': No such file or directory
make: *** [install] Error 1
[root@warthog module]#

I checked /usr/local/selinux/bin for checkpolicy to see if it was just a
permissions problem but the file does not exist. I could not find it in the
/lsm directory either.  Can someone tell me what I have screwed up? Thank
you for your time.

--
You have received this message because you are subscribed to the selinux 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] 13+ messages in thread
* RE: Problems with install
@ 2001-10-26 21:29 White, Tom (AZ15)
  2001-10-26 21:49 ` Stephen Smalley
  0 siblings, 1 reply; 13+ messages in thread
From: White, Tom (AZ15) @ 2001-10-26 21:29 UTC (permalink / raw)
  To: selinux

I just downloaded the most recent package from the nsa.gov website. I have
lsm-selinux-200110161355. I removed the previous version from the system and
gave it another shot. I went through the build successfully. I also make it
through the install in ../selinux/module. I then edited my
../selinux/policy/users file replacing the example users with two users that
have accounts on the box. Then I try to make and get:

[root@warthog policy]# make
cat types/device.te types/devpts.te types/file.te types/network.te
types/nfs.te types/procfs.te types/security.te > all_
types.te
cat domains/system/apache.te domains/system/apmd.te domains/system/atd.te
domains/system/automount.te domains/system/car
dmgr.te domains/system/crond.te domains/system/ftpd.te domains/system/gdm.te
domains/system/getty.te domains/system/gpm.
te domains/system/hwclock.te domains/system/inetd.te
domains/system/initrc.te domains/system/init.te domains/system/ipse
c.te domains/system/kernel.te domains/system/klogd.te domains/system/kmod.te
domains/system/login.te domains/system/lpd.
te domains/system/mount.te domains/system/named.te domains/system/portmap.te
domains/system/pump.te domains/system/rlogi
nd.te domains/system/rpcd.te domains/system/rshd.te
domains/system/sendmail.te domains/system/sshd.te domains/system/sys
logd.te domains/system/tcpd.te domains/system/xfs.te
domains/system/ypbind.te > system_domains.te
cat domains/program/crontab.te domains/program/fsadm.te
domains/program/gnome-pty-helper.te domains/program/ifconfig.te
domains/program/logrotate.te domains/program/lpr.te domains/program/mail.te
domains/program/modutil.te domains/program/n
etscape.te domains/program/newrole.te domains/program/passwd.te
domains/program/ping.te domains/program/run_init.te doma
ins/program/ssh.te domains/program/su.te domains/program/utempter.te
domains/program/xserver.te > program_domains.te
cat domains/user/user.te > user_domains.te
cat domains/admin/sysadm.te > admin_domains.te
cat domains/every.te system_domains.te program_domains.te user_domains.te
admin_domains.te > all_domains.te
rm -f system_domains.te program_domains.te user_domains.te admin_domains.te
cat macros.te all_types.te all_domains.te assert.te > all.te
rm -f all_types.te all_domains.te
m4 -s /usr/local/selinux/flask/security_classes
/usr/local/selinux/flask/initial_sids /usr/local/selinux/flask/access_ve
ctors all.te rbac users constraints initial_sid_contexts fs_contexts
devfs_contexts net_contexts > policy.conf
/usr/local/selinux/bin/checkpolicy -o policy policy.conf
/usr/local/selinux/bin/checkpolicy:  loading policy configuration from
policy.conf
make: *** [policy] Illegal instruction (core dumped)

I know I must be doing something wrong, but I don't know what. Any ideas?
Thanks for the help.

-----Original Message-----
From: Dave Nielsen [mailto:dave@technogeeks.com]
Sent: Wednesday, October 24, 2001 4:52 PM
Cc: White, Tom (AZ15); selinux@tycho.nsa.gov
Subject: Re: Problems with install




On Wed, 24 Oct 2001, Stephen Smalley wrote:

=>
=>On Wed, 24 Oct 2001, White, Tom (AZ15) wrote:
=>
=>> I am trying to implement the SELinux patch on a Red Hat 7.1 box. I did
the
=>> Kernel build following the documentation on the NSA web site.  I got to
step
=>> 2 in the INSTALLING section and when I do a make install in the module
=>> directory I get the following output:
=>
=>Which release of SELinux are you using, and which download option did you
=>use?
=>
my guess is he is trying one that was before the 2.4.10 release.

=>> [root@warthog module]# make install
=>> rm -f selinux_plug/include/asm selinux_plug/arch/machine
=>> ( cd selinux_plug/include ; ln -sf asm-i386 asm)
=>> ( cd selinux_plug/arch ; ln -sf i386 machine)
=>
=>Based on this output, it looks like you are using an older release.
=>As of the most recent release, the creation of the architecture symbolic
=>links was moved into the selinux_plug Makefiles.  In any event, this
=>should have happened during the kernel build, so something is wrong here.

The out put looks like Pre 2.4.10 package. I Had these issues with both
options on the pre 2.4.10.

I would like to say I have a fix for you besides downloading the 2.4.10 or
better yet the newest one that is out right now. I had the problem and
then the next day 2.4.10 was release.

=>
=>> cd ../../lsm/include/asm; install unistd.h
/usr/local/selinux/include/asm
=>> cd selinux_plug/ss; install checkpolicy /usr/local/selinux/bin
=>> install: cannot stat `checkpolicy': No such file or directory
=>> make: *** [install] Error 1
=>
=>The checkpolicy program should have been compiled during the kernel build.
=>Again, this suggests that your kernel build didn't really succeed.  Did
=>you enable SELinux in the kernel configuration?
=>

Dave

--
You have received this message because you are subscribed to the selinux 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] 13+ messages in thread
* RE: Problems with install
@ 2001-10-26 23:10 White, Tom (AZ15)
  0 siblings, 0 replies; 13+ messages in thread
From: White, Tom (AZ15) @ 2001-10-26 23:10 UTC (permalink / raw)
  To: Stephen Smalley; +Cc: selinux

I am installing this on a P200 and I went into the kernel config and changed
this, and included my NIC drivers. I am in the process of building again. I
will let you know how this turns out. Thanks again.

-----Original Message-----
From: Stephen Smalley [mailto:sds@tislabs.com]
Sent: Friday, October 26, 2001 2:49 PM
To: White, Tom (AZ15)
Cc: selinux@tycho.nsa.gov
Subject: RE: Problems with install



On Fri, 26 Oct 2001, White, Tom (AZ15) wrote:

> make: *** [policy] Illegal instruction (core dumped)

Check the Processor type in your kernel configuration.  If you left it set
for the default (Pentium III) and your machine is something older, then
you'll encounter this problem.  Also, while you're doing that, make sure
that you enabled the driver for your network card, since people often
forget to do that (most aren't enabled in the default configuration).
Then, prior to rebuilding in the lsm tree, cd to
selinux/module/selinux_plug/ss and remove *.cp.o and checkpolicy.

--
Stephen D. Smalley, NAI Labs
ssmalley@nai.com


--
You have received this message because you are subscribed to the selinux 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] 13+ messages in thread
* RE: Problems with install
@ 2001-10-28 19:03 Westerman, Mark
  2001-10-28 22:29 ` Conan Callen
  0 siblings, 1 reply; 13+ messages in thread
From: Westerman, Mark @ 2001-10-28 19:03 UTC (permalink / raw)
  To: 'White, Tom (AZ15)', selinux

There has been an error like this on the  previous version.
The problem I had was with the processor type in the kernel
build. It selected a PIII process when I only a clasic type.
Check you processor type make sure it matches what is in
you machine.

Mark

-----Original Message-----
From: White, Tom (AZ15) [mailto:tom.white@honeywell.com]
Sent: Friday, October 26, 2001 4:29 PM
To: selinux@tycho.nsa.gov
Subject: RE: Problems with install
Importance: High


I just downloaded the most recent package from the nsa.gov website. I have
lsm-selinux-200110161355. I removed the previous version from the system and
gave it another shot. I went through the build successfully. I also make it
through the install in ../selinux/module. I then edited my
../selinux/policy/users file replacing the example users with two users that
have accounts on the box. Then I try to make and get:

[root@warthog policy]# make
cat types/device.te types/devpts.te types/file.te types/network.te
types/nfs.te types/procfs.te types/security.te > all_
types.te
cat domains/system/apache.te domains/system/apmd.te domains/system/atd.te
domains/system/automount.te domains/system/car
dmgr.te domains/system/crond.te domains/system/ftpd.te domains/system/gdm.te
domains/system/getty.te domains/system/gpm.
te domains/system/hwclock.te domains/system/inetd.te
domains/system/initrc.te domains/system/init.te domains/system/ipse
c.te domains/system/kernel.te domains/system/klogd.te domains/system/kmod.te
domains/system/login.te domains/system/lpd.
te domains/system/mount.te domains/system/named.te domains/system/portmap.te
domains/system/pump.te domains/system/rlogi
nd.te domains/system/rpcd.te domains/system/rshd.te
domains/system/sendmail.te domains/system/sshd.te domains/system/sys
logd.te domains/system/tcpd.te domains/system/xfs.te
domains/system/ypbind.te > system_domains.te
cat domains/program/crontab.te domains/program/fsadm.te
domains/program/gnome-pty-helper.te domains/program/ifconfig.te
domains/program/logrotate.te domains/program/lpr.te domains/program/mail.te
domains/program/modutil.te domains/program/n
etscape.te domains/program/newrole.te domains/program/passwd.te
domains/program/ping.te domains/program/run_init.te doma
ins/program/ssh.te domains/program/su.te domains/program/utempter.te
domains/program/xserver.te > program_domains.te
cat domains/user/user.te > user_domains.te
cat domains/admin/sysadm.te > admin_domains.te
cat domains/every.te system_domains.te program_domains.te user_domains.te
admin_domains.te > all_domains.te
rm -f system_domains.te program_domains.te user_domains.te admin_domains.te
cat macros.te all_types.te all_domains.te assert.te > all.te
rm -f all_types.te all_domains.te
m4 -s /usr/local/selinux/flask/security_classes
/usr/local/selinux/flask/initial_sids /usr/local/selinux/flask/access_ve
ctors all.te rbac users constraints initial_sid_contexts fs_contexts
devfs_contexts net_contexts > policy.conf
/usr/local/selinux/bin/checkpolicy -o policy policy.conf
/usr/local/selinux/bin/checkpolicy:  loading policy configuration from
policy.conf
make: *** [policy] Illegal instruction (core dumped)

I know I must be doing something wrong, but I don't know what. Any ideas?
Thanks for the help.

-----Original Message-----
From: Dave Nielsen [mailto:dave@technogeeks.com]
Sent: Wednesday, October 24, 2001 4:52 PM
Cc: White, Tom (AZ15); selinux@tycho.nsa.gov
Subject: Re: Problems with install




On Wed, 24 Oct 2001, Stephen Smalley wrote:

=>
=>On Wed, 24 Oct 2001, White, Tom (AZ15) wrote:
=>
=>> I am trying to implement the SELinux patch on a Red Hat 7.1 box. I did
the
=>> Kernel build following the documentation on the NSA web site.  I got to
step
=>> 2 in the INSTALLING section and when I do a make install in the module
=>> directory I get the following output:
=>
=>Which release of SELinux are you using, and which download option did you
=>use?
=>
my guess is he is trying one that was before the 2.4.10 release.

=>> [root@warthog module]# make install
=>> rm -f selinux_plug/include/asm selinux_plug/arch/machine
=>> ( cd selinux_plug/include ; ln -sf asm-i386 asm)
=>> ( cd selinux_plug/arch ; ln -sf i386 machine)
=>
=>Based on this output, it looks like you are using an older release.
=>As of the most recent release, the creation of the architecture symbolic
=>links was moved into the selinux_plug Makefiles.  In any event, this
=>should have happened during the kernel build, so something is wrong here.

The out put looks like Pre 2.4.10 package. I Had these issues with both
options on the pre 2.4.10.

I would like to say I have a fix for you besides downloading the 2.4.10 or
better yet the newest one that is out right now. I had the problem and
then the next day 2.4.10 was release.

=>
=>> cd ../../lsm/include/asm; install unistd.h
/usr/local/selinux/include/asm
=>> cd selinux_plug/ss; install checkpolicy /usr/local/selinux/bin
=>> install: cannot stat `checkpolicy': No such file or directory
=>> make: *** [install] Error 1
=>
=>The checkpolicy program should have been compiled during the kernel build.
=>Again, this suggests that your kernel build didn't really succeed.  Did
=>you enable SELinux in the kernel configuration?
=>

Dave

--
You have received this message because you are subscribed to the selinux
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.

--
You have received this message because you are subscribed to the selinux 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] 13+ messages in thread

end of thread, other threads:[~2001-10-28 23:10 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-24 17:15 Problems with install White, Tom (AZ15)
2001-10-24 19:23 ` Stephen Smalley
2001-10-24 22:11   ` Paul Krumviede
2001-10-24 22:27     ` Stephen Smalley
2001-10-25  4:09       ` Dave Nielsen
2001-10-25 13:04         ` Stephen Smalley
2001-10-25 22:31           ` Dave Nielsen
2001-10-24 23:51   ` Dave Nielsen
  -- strict thread matches above, loose matches on Subject: below --
2001-10-26 21:29 White, Tom (AZ15)
2001-10-26 21:49 ` Stephen Smalley
2001-10-26 23:10 White, Tom (AZ15)
2001-10-28 19:03 Westerman, Mark
2001-10-28 22:29 ` Conan Callen

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.