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

mlocate not working on Android Pie #3824

Closed
brbsix opened this issue May 18, 2019 · 0 comments · Fixed by #3825
Closed

mlocate not working on Android Pie #3824

brbsix opened this issue May 18, 2019 · 0 comments · Fixed by #3825

Comments

@brbsix
Copy link

brbsix commented May 18, 2019

Problem description
locate exits prematurely on Android Pie

Steps to reproduce

$ locate -S
Bad system call

$ echo $?
159

Additional information
strace reveals that setgid() is triggering seccomp

22579 getgid()                          = 10313                                         
22579 setgid(10313)                     = 10313
22579 --- SIGSYS {si_signo=31 /* SIGSYS */, si_code=0x1 /* SYS_SECCOMP */, si_call_addr=0x7d49a3313c, si_syscall=__NR_setgid, si_arch=0xc00000b7 /* AUDIT_ARCH_AARCH64 */} ---
22579 rt_sigaction(31 /* SIGSYS */, NULL, {sa_handler=0x7d49cb1094, sa_mask=~[KILL STOP RTMIN RT_1 RT_2 RT_3], sa_flags=0x18000004 /* SA_ONSTACK|SA_RESTART|SA_SIGINFO */}, 8) = 0

Below is the partial output of command termux-info.

Updatable packages:
All packages up to date
Subscribed repositories:
https://dl.bintray.com/xeffyr/unstable-packages-24 unstable/main
https://dl.bintray.com/grimler/termux-root-packages-24 root/stable
https://dl.bintray.com/termux/termux-packages-24 stable/main
System information:
Linux localhost 4.9.106-perf+ #1 SMP PREEMPT Wed Apr 3 22:25:17 CST 2019 aarch64 Android
Termux-packages arch:
aarch64
Android version:
9

A similar issue with screen was patched at fb83a47

Grimler91 added a commit that referenced this issue May 18, 2019
@ghost ghost locked and limited conversation to collaborators Oct 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant