Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#89 Error in SE Linux policy file

Miscellaneous
closed-works-for-me
mreed
Testcases (113)
5
2007-05-10
2006-06-08
Len DiMaggio
No

FYI everyone,

If you want to run the SE Linux tests - you'll have
to edit this file:
ltp-full-20060515/testcases/kernel/security/selinux-testsuite/refpolicy/test_global.te

And make this change:

# diff test_global.te test_global.te~
4,8d3
< gen_require(`
< type root_t, etc_t, bin_t, sbin_t, lib_t,
usr_t, devpts_t;
< type devtty_t, null_device_t, zero_device_t;
< ')
<

Otherwise - you get a compile time error like this:

test_policy.te:168: deprecated use of module name
(mount) as first parameter of optional_policy() block.
/usr/bin/checkmodule: loading policy configuration
from tmp/test_policy.tmp
test_policy.te:54:ERROR 'unknown type root_t' at token
';' on line 46605:
allow testdomain { root_t etc_t bin_t sbin_t lib_t
usr_t devpts_t }:dir { read getattr lock search ioctl };

/usr/bin/checkmodule: error(s) encountered while
parsing configuration
make: *** [tmp/test_policy.mod] Error 1

Discussion

    • assigned_to: nobody --> mreed10
     
  • Subrata Modak
    Subrata Modak
    2007-05-10

    Logged In: YES
    user_id=1737361
    Originator: NO

    I do not get any compilation error as such.
    Regards--
    Subrata

     
  • Subrata Modak
    Subrata Modak
    2007-05-10

    • status: open --> closed-works-for-me