2018-01-23 19:56:29

by Goldwyn Rodrigues

[permalink] [raw]
Subject: [refpolicy] Compilation error at nis_use_ypbind

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.

--
Goldwyn


2018-01-24 00:49:24

by Chris PeBenito

[permalink] [raw]
Subject: [refpolicy] Compilation error at nis_use_ypbind

On 01/23/2018 02:56 PM, Goldwyn Rodrigues via refpolicy wrote:
> 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?



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


--
Chris PeBenito

2018-01-24 02:11:21

by Goldwyn Rodrigues

[permalink] [raw]
Subject: [refpolicy] Compilation error at nis_use_ypbind



On 01/23/2018 06:49 PM, Chris PeBenito wrote:
> On 01/23/2018 02:56 PM, Goldwyn Rodrigues via refpolicy wrote:
>> 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

--
Goldwyn