Label for executable in tmp
"Aleksei Bedniakov" <[email protected]> Fri, 31 Mar 2023 09:37:09 -0000
| Newsgroups | gmane.linux.redhat.fedora.selinux |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I have a case with script which connects via ssh, transfers executable to /tmp folder and tries to run it. SELinux is blocking the execution, which is expected behavior from a security perspective.
Simple way is to create a rule `allow user_t user_home_t:file { execute };` execution, but I am unable to affect the user_t or process_t in my case. And that it is not secure to allow too wide execution rights for the /tmp folder.
I believe this scenario is common, but still unable to find a way to properly handle this. Is there a proper way to do this?
Thanks!
_______________________________________________
selinux mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue