List Archive: gentoo-hardened
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
|
|