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

Incorrect paths. From another policy #97

Open
javlock opened this issue Jan 10, 2022 · 6 comments
Open

Incorrect paths. From another policy #97

javlock opened this issue Jan 10, 2022 · 6 comments

Comments

@javlock
Copy link

javlock commented Jan 10, 2022

no such file or directory

/etc/selinux/config
SELINUX=permissive
SELINUXTYPE=refpolicy-arch

Скриншот_Выберите область_20220110143848

@fishilico
Copy link
Member

Hello,
I do not understand what issue you are reporting. What are you trying to do and what issue are you encountering? More precisely, which command are you running, which triggers the make -f /usr/share/selinux/devel/Makefile... command?

@jMeTeora
Copy link

Скриншот_Выберите область_20220129062448

@jMeTeora
Copy link

jMeTeora commented Feb 1, 2022

policy build script calls 'make' with non-existent Makefile

Here are the files i currently have:

find 2>/dev/null /etc /usr/ -type f  -name *akefile*|grep -i seli 

/etc/selinux/refpolicy/src/policy/doc/Makefile.example
/etc/selinux/refpolicy/src/policy/support/Makefile.devel
/etc/selinux/refpolicy/src/policy/Makefile
/usr/lib/modules/5.15.16-hardened1-1-hardened/build/scripts/selinux/Makefile
/usr/lib/modules/5.15.16-hardened1-1-hardened/build/scripts/selinux/genheaders/Makefile
/usr/lib/modules/5.15.16-hardened1-1-hardened/build/scripts/selinux/mdp/Makefile
/usr/lib/modules/5.15.18-1-lts/build/scripts/selinux/Makefile
/usr/lib/modules/5.15.18-1-lts/build/scripts/selinux/genheaders/Makefile
/usr/lib/modules/5.15.18-1-lts/build/scripts/selinux/mdp/Makefile
/usr/lib/modules/5.16.4-arch1-1/build/scripts/selinux/Makefile
/usr/lib/modules/5.16.4-arch1-1/build/scripts/selinux/genheaders/Makefile
/usr/lib/modules/5.16.4-arch1-1/build/scripts/selinux/mdp/Makefile
/usr/lib/modules/5.16.4-zen1-1-zen/build/scripts/selinux/Makefile
/usr/lib/modules/5.16.4-zen1-1-zen/build/scripts/selinux/genheaders/Makefile
/usr/lib/modules/5.16.4-zen1-1-zen/build/scripts/selinux/mdp/Makefile
/usr/share/selinux/refpolicy-arch/include/Makefile
/usr/share/selinux/refpolicy-git/include/Makefile

@jMeTeora
Copy link

jMeTeora commented Feb 4, 2022

I can get the full path to the makefile of the policy in use like so:

echo /usr/share/selinux/$(cat /etc/selinux/config|grep -v "^#"|grep -i SELINUXTYPE|tr "=" "\n"|grep -v SELINUXTYPE)/include/Makefile

0
0 2 png

@jMeTeora
Copy link

jMeTeora commented Feb 4, 2022

in *.sh script file
rpmbuild from community/rpm-tools package
3

@freedom1b2830
Copy link

@fishilico
javlock ,jMeTeora is my account (can't restore access ...)
using the policy creation wizard (its console and graphical versions), an executable $policy_name.sh is generated in which a makefile is used from a non-existent directory:
/usr/share/selinux/devel/Makefile

there are only 3 policies:

/etc/selinux/refpolicy/src/policy/Makefile
/usr/share/selinux/refpolicy-arch/include/Makefile
/usr/share/selinux/refpolicy-git/include/Makefile

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

4 participants