selinuxexeccon(8) SELinux Command Line documentation selinuxexeccon(8)

# [NAME](#NAME)

selinuxexeccon - report SELinux context used for this executable

# [SYNOPSIS](#SYNOPSIS)

**selinuxexeccon** *command* \[*fromcon*]

# [DESCRIPTION](#DESCRIPTION)

**selinuxexeccon** reports the SELinux process context for the specified command from the specified context or the current context.

# [EXAMPLE](#EXAMPLE)

```
# selinuxexeccon /usr/bin/passwd 
staff_u:staff_r:passwd_t:s0-s0:c0.c1023
# selinuxexeccon /usr/sbin/sendmail system_u:system_r:httpd_t:s0
system_u:system_r:system_mail_t:s0
```

# [AUTHOR](#AUTHOR)

This manual page was written by Dan Walsh &lt;dwalsh@redhat.com&gt;.

# [SEE ALSO](#SEE_ALSO)

[**secon**(8)](/man/os/libselinux/secon.8)

14 May 2011 dwalsh@redhat.com

---

Document: selinuxexeccon(8) from libselinux 3.11-r2 (Chainguard OS)
Source: https://github.com/SELinuxProject/selinux.git
