Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build on CentOS-7 #10

Open
nixpanic opened this issue Jan 14, 2021 · 5 comments
Open

Fails to build on CentOS-7 #10

nixpanic opened this issue Jan 14, 2021 · 5 comments

Comments

@nixpanic
Copy link
Member

While building an RPM from the v0.1.0 tag, I get the following error:

make -f /usr/share/selinux/devel/Makefile glusterd.pp
make[1]: Entering directory `/builddir/build/BUILD/glusterfs-selinux-0.1.0'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
glusterd.if:15: Error: duplicate definition of glusterd_domtrans(). Original definition on 15.
glusterd.if:35: Error: duplicate definition of glusterd_initrc_domtrans(). Original definition on 35.
glusterd.if:54: Error: duplicate definition of glusterd_read_log(). Original definition on 54.
glusterd.if:73: Error: duplicate definition of glusterd_append_log(). Original definition on 73.
glusterd.if:92: Error: duplicate definition of glusterd_filetrans_named_pid(). Original definition on 92.
glusterd.if:109: Error: duplicate definition of glusterd_manage_pid(). Original definition on 109.
glusterd.if:129: Error: duplicate definition of glusterd_manage_log(). Original definition on 129.
glusterd.if:150: Error: duplicate definition of gluster_execute_lib(). Original definition on 150.
glusterd.if:170: Error: duplicate definition of glusterd_read_conf(). Original definition on 170.
glusterd.if:189: Error: duplicate definition of glusterd_dontaudit_read_lib_dirs(). Original definition on 189.
glusterd.if:207: Error: duplicate definition of glusterd_rw_lib(). Original definition on 207.
glusterd.if:226: Error: duplicate definition of glusterd_read_lib_files(). Original definition on 226.
glusterd.if:246: Error: duplicate definition of glusterd_manage_lib_files(). Original definition on 246.
glusterd.if:273: Error: duplicate definition of glusterd_admin(). Original definition on 273.
Compiling targeted glusterd module
/usr/bin/checkmodule:  loading policy configuration from tmp/glusterd.tmp
glusterd.te:258:ERROR 'syntax error' at token 'automount_write_pipes' on line 10170:
    automount_write_pipes(glusterd_t)
#line 258
/usr/bin/checkmodule:  error(s) encountered while parsing configuration

This happens when using the .spec from from @rkothiya at https://github.com/rkothiya/rpm/blob/main/glusterfs-selinux.spec

@wrabcak
Copy link
Collaborator

wrabcak commented Jan 14, 2021

@vmojzis @zpytela PTAL

@nixpanic
Copy link
Member Author

FWIW, building on CentOS-8 works (results and logs)

@rkothiya
Copy link
Collaborator

glusterfs-selinux is only supported on centos-8 and beyond. It wont compile on centos-7.

@nixpanic
Copy link
Member Author

glusterfs-selinux is only supported on centos-8 and beyond. It wont compile on centos-7.

Does that also mean no additional SElinux policy/rules are needed on CentOS-7?

@rkothiya
Copy link
Collaborator

yes, whatever policy is provided by the distro is the one that will be used, we wont provide glusterfs-selinux package for centos-7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants