-
Notifications
You must be signed in to change notification settings - Fork 79
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
permission exec mounts #559
Comments
let keep this open for other comments |
great test2 is working change exec shell to /usr/local/bin from /tmp |
happy holiday Thanks for reaching out to us. We have received your request. We receive many such requests each day; your message is in our queue, and we'll get to it as quickly as our workload permits. Due to the large volume of requests that we receive, we will only be able to provide you with a response if we determine your request may be a valid and actionable legal complaint, and we may respond with questions or requests for clarification. For more information on Google's Terms of Service, please visit http://www.google.com/accounts/TOS Regards, The Google Team Due to the impact of COVID-19, it may take us longer than usual to respond to your request. Our apologies for the inconvenience. |
Thank you for reaching out to us! It looks like this is an issue with ChromeOS itself instead of the website. Please file a bug here so it can get into the hands of our OS engineers. Thanks! |
yes i have done this |
Describe the bug
A clear and concise description of what the bug is.
bash: /usr/local/bin/test.sh: Permission denied
https://chromium.googlesource.com/chromiumos/docs/+/master/security/noexec_shell_scripts.md
To Reproduce
Steps to reproduce the behavior:
run example this should work in v106 this did work
in v107 is does not work
this is google example how to use the computer
security has done something not documented
chronos@localhost /usr/local/bin $ more mnt.sh
sudo mount -o remount,symfollow -o exec /media/removable/sd200
sudo mount -o remount,symfollow -o exec /tmp
sudo mount -o remount,symfollow -o exec /var/run
sudo mount -o remount,symfollow -o exec /
chronos@localhost /usr/local/bin $ mnt.sh
Password:
works
printf '#!/bin/sh\necho hi\n' > /usr/local/bin/test.sh
fail
chmod a+rx /usr/local/bin/test.sh
which test.sh
/usr/local/bin/test.sh test.sh
hi
Expected behavior
A clear and concise description of what you expected to happen.
the sh file should run like mnt.sh does
writing to a file via printf fails
write to a file using
tee works
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Version 107.0.5304.110 (Official Build) (32-bit)
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
chronos@localhost /usr/local/bin $ sudo printf '#!/bin/sh\necho hi\n' >>test.sh
bash: test.sh: Permission denied
chronos@localhost /usr/local/bin $ sudo vi /usr/local/bin/test.sh
chronos@localhost /usr/local/bin $ test.sh
bash: /usr/local/bin/test.sh: Permission denied
chronos@localhost /usr/local/bin $ sudo chmod 777 test.sh
chronos@localhost /usr/local/bin $ test.sh
#!/bin/sh
echo hi
chrosh shell screen shot
chronos@localhost /usr/local/bin $
The text was updated successfully, but these errors were encountered: