Skip to contentSkip to conversation

modular policy: local module issues

DISCUSSION Antoine Martin 2 participants 2 messages Apr 17, 2007 – Apr 19, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi all,

I am moving some of my old policies to the modular policy - using this page as a base:
http://sepolicy-server.sourceforge.net/index.php?page=module-overview
and I am having a few problems:

* Trying to use tmp_domain():
logcheck.te:18:ERROR 'syntax error' at token 'tmp_domain' on line 77716:
tmp_domain(logcheck)

* Removed this line, then:

# make load
Loading strict modules: logcheck
libsepol.permission_copy_callback: Module local depends on permission
dccp_recv in class node, not satisfied
libsemanage.semanage_link_sandbox: Link packages failed

Any ideas?

Thanks
Antoine

# uname -r
kernel 2.6.15-skas3-v8.2
# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   permissive
Mode from config file:          permissive
Policy version:                 20
Policy from config file:        strict

sys-libs/libselinux 1.34.0
sys-libs/libsemanage 1.10.0
sys-libs/libsepol 1.16.2

Gentoo profile:
/usr/portage/profiles/selinux/x86/2006.1

--
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 10 lines · Antoine Martin

Hi all,

I am moving some of my old policies to the modular policy - using this page as a base:
http://sepolicy-server.sourceforge.net/index.php?page=module-overview
and I am having a few problems:

* Trying to use tmp_domain():
logcheck.te:18:ERROR 'syntax error' at token 'tmp_domain' on line 77716:
tmp_domain(logcheck)

Look for the equivalent refpolicy interface instead.

Quoted 6 lines

* Removed this line, then:

# make load
Loading strict modules: logcheck
libsepol.permission_copy_callback: Module local depends on permission
dccp_recv in class node, not satisfied
libsemanage.semanage_link_sandbox: Link packages failed

The implication is that you built the local module against newer refpolicy headers than the base module was built against, thus picking up newer kernel class/perm definitions that are not defined by the base module.

Quoted 28 lines

Any ideas?

Thanks
Antoine

# uname -r
kernel 2.6.15-skas3-v8.2
# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   permissive
Mode from config file:          permissive
Policy version:                 20
Policy from config file:        strict

sys-libs/libselinux 1.34.0
sys-libs/libsemanage 1.10.0
sys-libs/libsepol 1.16.2

Gentoo profile:
/usr/portage/profiles/selinux/x86/2006.1

--
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.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
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.