Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-hardened
Navigation:
Lists: gentoo-hardened: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-hardened@g.o
From: Marek Wróbel <smbmarek@...>
Subject: Re: SELinux module compile error: unknown type
Date: Sun, 30 Sep 2007 18:19:06 +0200
Dominik J. Fischer pisze:
> When trying to write a policy_module
> 
> vmdefault # files_manage_urandom_seed(mount_t)
> 
> the compile error stops me again:
> 
> Compiling strict local module
> /usr/bin/checkmodule:  loading policy configuration from tmp/local.tmp
> local.te:11:ERROR 'unknown type mount_t' at token ';' on line 78190:
>         allow mount_t var_t:dir { getattr search };
> #line 11
> /usr/bin/checkmodule:  error(s) encountered while parsing configuration
> make: *** [tmp/local.mod] Error 1

You should use gen_require() before using any type. For example:


gen_require(`
        type system_crond_t, tmp_t;
')
files_manage_generic_tmp_files(system_crond_t);
manage_dirs_pattern(system_crond_t,tmp_t,tmp_t);


Best regards,
Marek Wróbel
-- 
gentoo-hardened@g.o mailing list


References:
SELinux module compile error: unknown type
-- Dominik J. Fischer
Re: SELinux module compile error: unknown type
-- Bill Sharer
Re: SELinux module compile error: unknown type
-- Dominik J. Fischer
Navigation:
Lists: gentoo-hardened: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: SELinux module compile error: unknown type
Next by thread:
Cannot get openssh to set correct user contexts...
Previous by date:
Re: SELinux module compile error: unknown type
Next by date:
Cannot get openssh to set correct user contexts...


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.