Skip to contentSkip to conversation

boot messages and mount

DISCUSSION f980215 2 participants 2 messages Apr 30, 2002 – May 1, 2002 SELinux security module

lore
Share & tools
lore

f980215

author
#0 lore raw

hi,all

1)

I install freeswan-selinux rpm packages on redhat 7.2

when boot, found error messages:
=================================

Apr 28 21:05:16 sea2 ipsec: execvp: Permission denied
kernel: avc:  denied  { execute } for  pid=679 exe=/sbin/initlog path=/etc/rc.d/init.d/ipsec dev=03:43 ino=680615 scontext=system_u:system_r:initrc_t tcontext=system_u:object_r:var_lock_t tclass=file
Apr 28 20:27:09 sea2 ipsec: execvp: Permission denied
Apr 28 20:27:09 sea2 rc: Starting ipsec:  failed

then,

after

file_context.te: (add)
===============
/usr/local/sbin/ipsec system_u:object_r:ipsec_exec_t

initrc.te: (add)
==========
allow initrc_t var_lock_t:file { execute execute_no_trans }; allow initrc_t file_t:file { execute execute_no_trans }; allow initrc_t self:key_socket { create };

,

when again boot, "ipsec startup succeeded"

2)
running mount command:
======================
/dev/hdb3 on / type ext3 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620) /dev/hdb1 on /mnt/hdb1 type vfat (rw) /dev/hdb5 on /mnt/hdb5 type vfat (rw)
none on /dev/shm type tmpfs (rw)
/dev/fd0 on /mnt/floppy type vfat (rw,nosuid,nodev)

ext3 filesystems is read/write, but other filesystems ( vfat ) is read-only

How to make other filesystems can be wrote?

f980215

--
You have received this message because you are subscribed to the selinux 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 6 lines · On Tue, 30 Apr 2002, f980215 wrote:

when boot, found error messages:
=================================

Apr 28 21:05:16 sea2 ipsec: execvp: Permission denied
kernel: avc:  denied  { execute } for  pid=679 exe=/sbin/initlog path=/etc/rc.d/init.d/ipsec dev=03:43 ino=680615 scontext=system_u:system_r:initrc_t tcontext=system_u:object_r:var_lock_t tclass=file
Apr 28 20:27:09 sea2 ipsec: execvp: Permission denied
Apr 28 20:27:09 sea2 rc: Starting ipsec:  failed

This indicates that /etc/rc.d/init.d/ipsec has the wrong type (var_lock_t rather than etc_t). Be sure that you run make relabel, and that you don't switch back and forth between an ordinary Linux kernel and the SELinux kernel without performing such a relabel.

--
Stephen D. Smalley, NAI Labs
[email protected]

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.