Este conteúdo não está disponível no idioma selecionado.

6.6. Booleans for Users Executing Applications


Not allowing Linux users to execute applications (which inherit users' permissions) in their home directories and the /tmp directory, which they have write access to, helps prevent flawed or malicious applications from modifying files that users own.
Booleans are available to change this behavior, and are configured with the setsebool utility, which must be run as root. The setsebool -P command makes persistent changes. Do not use the -P option if you do not want changes to persist across reboots:

guest_t

To prevent Linux users in the guest_t domain from executing applications in their home directories and /tmp:
~]# setsebool -P guest_exec_content off
Copy to Clipboard Toggle word wrap

xguest_t

To prevent Linux users in the xguest_t domain from executing applications in their home directories and /tmp:
~]# setsebool -P xguest_exec_content off
Copy to Clipboard Toggle word wrap

user_t

To prevent Linux users in the user_t domain from executing applications in their home directories and /tmp:
~]# setsebool -P user_exec_content off
Copy to Clipboard Toggle word wrap

staff_t

To prevent Linux users in the staff_t domain from executing applications in their home directories and /tmp:
~]# setsebool -P staff_exec_content off
Copy to Clipboard Toggle word wrap
To turn the staff_exec_content boolean on and to allow Linux users in the staff_t domain to execute applications in their home directories and /tmp:
~]# setsebool -P staff_exec_content on
Copy to Clipboard Toggle word wrap
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2026 Red Hat
Voltar ao topo