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

Patch failure due to selinux errors when using AUR / makepkg #220

Closed
lypanov opened this issue Apr 1, 2020 · 5 comments
Closed

Patch failure due to selinux errors when using AUR / makepkg #220

lypanov opened this issue Apr 1, 2020 · 5 comments

Comments

@lypanov
Copy link

lypanov commented Apr 1, 2020

Good day!

I've spent a few hours this evening diving into getting k2pdfopt running in TermuxArch. It runs in Termux itself but I'd prefer to have everything in TermuxArch.

I'm running into the same issue i see mentioned a few times in other issues:
patch: setting attribute security.selinux for security

Using strace I've narrowed this down to:
lsetxattr("./CMakeLists.txt.oAQQFZ9", "security.selinux", "u:object_r:app_data_file:s0:c219"..., 48, 0
...
<... lsetxattr resumed>) = -1 EACCES (Permission denied)

From what I can tell based on other issues in Termux itself I should be running this as root else some random selinux hacks don't kick in (really unsure of this but the idea I got).

Alas makepkg throws a fit if I attempt to run it under root and I'm yet to find a workaround.

Any ideas what I could do? I'm unsure why patch even needs to apply these extended attribute changes!

Thank you so much for any help / guidance,
Alex

@SDRausty
Copy link
Owner

SDRausty commented Apr 4, 2020

Howdy,
makepkg and root do not mix; sudo should help out. Try these links for makepkg issues:

You are welcome @lypanov, and thank you for taking part in these projects! Share your progress here please.

@PSzczepanski1996
Copy link

I encountered the same issue while trying to build fakeroot-tcp from Arch, despite having bunch of acl errors due to probably that issue:
#83

So I just assume that for now makepkg is not working either, and Arch heavily bases on that ;( I wanted to get working polybar and mesa with llvmpipe acceleration. Hope you will get it working in future @SDRausty

@github-actions
Copy link

Stale issue message

@SDRausty
Copy link
Owner

SDRausty commented Jul 19, 2020

for now makepkg is not working either,

@HoshiYamazaki just in; makepkg is working again.

The patch is now included in the root files directory of the project

The command setupTermuxArch.bash r refreshes the installation quickly

@SDRausty
Copy link
Owner

SDRausty commented Aug 5, 2020

This TermuxArch/TermuxArch@161eaba commit automates adding sudo users.

printf "%s\\n" "\$1 ALL=(ALL) ALL" >> /etc/sudoers
sed -i "s/\$1:x/\$1:/g" /etc/passwd

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

No branches or pull requests

3 participants