Skip to contentSkip to conversation

Compilation error at nis_use_ypbind

refpolicy Goldwyn Rodrigues 2 participants 3 messages Jan 23, 2018 – Jan 24, 2018

lore
Share & tools
lore
#0 lore raw

Hi,

When I compile the refpolicy from the git sources, I get the following error. Is there any package/source missing which is required which would have the definitions?

cat tmp/pre_te_files.conf tmp/all_attrs_types.conf tmp/global_bools.conf tmp/only_te_rules.conf tmp/all_post.conf > base.conf Compiling refpolicy base module
/usr/bin/checkmodule -U allow base.conf -o tmp/base.mod /usr/bin/checkmodule: loading policy configuration from base.conf policy/modules/kernel/kernel.te:387:ERROR 'syntax error' at token 'nis_use_ypbind' on line 18613:
#line 387
nis_use_ypbind(kernel_t)
/usr/bin/checkmodule: error(s) encountered while parsing configuration
make: *** [Rules.modular:103: tmp/base.mod] Error 1

Commenting out the part does not help because it would fail with a similar error on another keyword such as plymouth_read_lib_files or rpc_manage_nfs_ro_content.

Environment: opensuse tumbleweed running 4.14.12-1 selinux compiled from git, latest git master branch

To compile, I:
1. Changed build.conf to TYPE=standard, DISTRO=suse, UNK_PERMS=allow
2. make bare
3. make conf
4. make

I am trying to update the refpolicy package for opensuse.

Signature · 1 line
Goldwyn
#1 lore raw
Quoted 6 lines · Goldwyn Rodrigues via refpolicy

Hi,

When I compile the refpolicy from the git sources, I get the following error. Is there any package/source missing which is required which would have the definitions?

Did you do a recursive checkout to get the refpolicy-contrib submodule?

Quoted 27 lines

cat tmp/pre_te_files.conf tmp/all_attrs_types.conf tmp/global_bools.conf tmp/only_te_rules.conf tmp/all_post.conf > base.conf Compiling refpolicy base module
/usr/bin/checkmodule -U allow base.conf -o tmp/base.mod /usr/bin/checkmodule: loading policy configuration from base.conf policy/modules/kernel/kernel.te:387:ERROR 'syntax error' at token 'nis_use_ypbind' on line 18613:
#line 387
nis_use_ypbind(kernel_t)
/usr/bin/checkmodule: error(s) encountered while parsing configuration
make: *** [Rules.modular:103: tmp/base.mod] Error 1

Commenting out the part does not help because it would fail with a similar error on another keyword such as plymouth_read_lib_files or rpc_manage_nfs_ro_content.

Environment: opensuse tumbleweed running 4.14.12-1 selinux compiled from git, latest git master branch

To compile, I:
1. Changed build.conf to TYPE=standard, DISTRO=suse, UNK_PERMS=allow
2. make bare
3. make conf
4. make

I am trying to update the refpolicy package for opensuse.

Signature · 1 line
Chris PeBenito
#2 lore raw
Quoted 9 lines · Chris PeBenito
Quoted 6 lines · Goldwyn Rodrigues via refpolicy

Hi,

When I compile the refpolicy from the git sources, I get the following error. Is there any package/source missing which is required which would have the definitions?

Did you do a recursive checkout to get the refpolicy-contrib submodule?

Yes, and I linked it to refpolicy/policy/modules/contrib

Signature · 1 line
Goldwyn