Skip to contentSkip to conversation

SELinux compile errors

DISCUSSION Subba Rao 2 participants 2 messages Nov 29, 2002 – Nov 30, 2002 SELinux security module

lore
Share & tools
lore

Subba Rao

author
#0 lore raw

Hello again

I have reinstalled Slackware 8.1 from scratch so that I have the default libraries to install SELinux. The source tree I have used is lsm-2-4-selinux-2002102211.tgz (option 1) (When I extract I get "lsm-2.4" and "selinux" directories)

The following are the sequence of steps I have followed to get compile SELinux

cd selinux/module
make insert
cd ../..

cd lsm-2.4
make menuconfig (configured my kernel)
make dep
make
make modules
make install
make modules_install

cd ../selinux
cd modules
make install

cd ../policy
vi users (deleted the example users and added my userid to the list) make install-src install

cd ..
cd libsecure
make
make install

cd ..
cd utils
make

This is where I have stopped since I get the following error message:

--------------------------------------
make -C newrole
make[1]: Entering directory `/usr/src/selinux/utils/newrole'
cc -L/usr/local/selinux/lib -Wall -I/usr/local/selinux/include -DUSE_PAM -O3 -o newrole newrole.c -ldl -lpam -lpam_misc -lsecure newrole.c:132: security/pam_appl.h: No such file or directory
newrole.c:133: security/pam_misc.h: No such file or directory
make[1]: *** [newrole] Error 1
make[1]: Leaving directory `/usr/src/selinux/utils/newrole'
make: *** [xnewrole] Error 2
--------------------------------------

It looks like it is looking for PAM library.

Can someone please let me know how to get over this error. Yesterday after I installed PAM, this message went away, but then I was prompted for Kerberos and later for BSD library. Russell did mention that there is no need for Kerberos, so this time I am stopping before having to install PAM. I am using Slackware 8.1 distro.

Thank you in advance for any help.

Subba Rao
[email protected]
2002-11-29

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 14 lines · Subba Rao

This is where I have stopped since I get the following error message:

--------------------------------------
make -C newrole
make[1]: Entering directory `/usr/src/selinux/utils/newrole' cc -L/usr/local/selinux/lib -Wall -I/usr/local/selinux/include -DUSE_PAM -O3 -o newrole newrole.c -ldl -lpam -lpam_misc -lsecure newrole.c:132:
security/pam_appl.h: No such file or directory newrole.c:133: security/pam_misc.h: No such file or directory make[1]: *** [newrole] Error 1
make[1]: Leaving directory `/usr/src/selinux/utils/newrole'
make: *** [xnewrole] Error 2
--------------------------------------

Quoted 4 lines

It looks like it is looking for PAM library.

Can someone please let me know how to get over this error. Yesterday after I installed PAM, this message went away, but then I was prompted for

You need PAM support and therefore you need the PAM header files and libraries installed.

Quoted 3 lines

Kerberos and later for BSD library. Russell did mention that there is no need for Kerberos, so this time I am stopping before having to install PAM.
I am using Slackware 8.1 distro.

Install PAM, then show us the error messages.

Signature · 10 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.