Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sestatus.conf(5) [debian man page]

sestatus.conf(5)					    sestatus configuration file 					  sestatus.conf(5)

NAME
sestatus.conf - The sestatus(8) configuration file. DESCRIPTION
The sestatus.conf file is used by the sestatus(8) command with the -v option to determine what file and process security contexts should be displayed. The fully qualified path name of the configuration file is: /etc/sestatus.conf The file consists of two optional sections as described in the FILE FORMAT section. Whether these exist or not, the following will always be displayed: The current process context The init process context The controlling terminal file context FILE FORMAT
The format consists of two optional sections as follows: [files] file_name [file_name] ... [process] executable_file_name [executable_file_name] ... Where: [files] The start of the file list block. file_name One or more fully qualified file names, each on a new line will that will have its context displayed. If the file does not exist, then it is ignored. If the file is a symbolic link, then sestatus -v will also display the target file context. [process] The start of the process list block. executable_file_name One or more fully qualified executable file names that should it be an active process, have its context displayed. Each entry is on a new line. EXAMPLE
# /etc/sestatus.conf [files] /etc/passwd /etc/shadow /bin/bash /bin/login /lib/libc.so.6 /lib/ld-linux.so.2 /lib/ld.so.1 [process] /sbin/mingetty /sbin/agetty /usr/sbin/sshd SEE ALSO
selinux(8), sestatus(8) Security Enhanced Linux 26-Nov-2011 sestatus.conf(5)

Check Out this Related Man Page

sestatus(8)						SELinux command line documentation					       sestatus(8)

NAME
sestatus - SELinux status tool SYNOPSIS
sestatus [-v] [-b] This tool is used to get the status of a system running SELinux. DESCRIPTION
This manual page describes the sestatus program. This tool is used to get the status of a system running SELinux. It displays data about whether SELinux is enabled or disabled, location of key directories, and the loaded policy with its status as shown in the example: > sestatus SELinux status: enabled SELinuxfs mount: /selinux SELinux root directory: /etc/selinux Loaded policy name: targeted Current mode: permissive Mode from config file: enforcing Policy MLS status: enabled Policy deny_unknown status: allow Max kernel policy version: 26 sestatus can also be used to display: - The security context of files and processes listed in the /etc/sestatus.conf file. The format of this file is described in ses- tatus.conf(5). - The status of booleans. OPTIONS
-v Displays the contexts of files and processes listed in the /etc/sestatus.conf file. It also checks whether the file is a symbolic link, if so then the context of the target file is also shown. The following contexts will always be displayed: The current process context The init process context The controlling terminal file context -b Display the current state of booleans. FILES
/etc/sestatus.conf AUTHOR
This man page was written by Daniel Walsh <dwalsh@redhat.com>. The program was written by Chris PeBenito <pebenito@gentoo.org> SEE ALSO
selinux(8), sestatus.conf(5) Security Enhanced Linux 26 Nov 2011 sestatus(8)
Man Page

14 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Cd

why is 'cd' a shell built in and not an executable? (27 Replies)
Discussion started by: clickonline1
27 Replies

2. UNIX for Dummies Questions & Answers

improving my script (find & replace)

Hi all, I have a script that scan files, find old templet and replace it with new one. #!/bin/ksh file_name=$1 old_templet=$2 new_templet=$3 # Loop through every file like this for file in file_name do cat $file | sed "s/old_templet/new_templet/g" > $file.new #do a global searce and... (8 Replies)
Discussion started by: amir_yosha
8 Replies

3. AIX

Interesting SMITTY behavior

I have a couple systems that are acting strangely. In 'smitty tcpip' everything is displayed twice. Even going into the submenus (like minimum configuration and startup) everything is displayed twice. Has anyone seen this? Know how to fix it? Thanks (3 Replies)
Discussion started by: pmmill2
3 Replies

4. Shell Programming and Scripting

not able to process files

hi i have a dir contains files i am reading ls $path | while read FILE do grep "a GFT buffer" $path/$FILE ...... ..... done it is able to process the fist file, from secomd onwards it is giving the following error, 2nd file name is "sd_gfts_GFT1_TCPGFT.trc.4" grep:... (1 Reply)
Discussion started by: Satyak
1 Replies

5. Shell Programming and Scripting

compare two files

I have two files. one file consists of process ID's: ProcessID1 ProcessID2 ProcessID3 Second file consists of 3 records: username1 ProcessID1 Date1 Time1 ProcessName1 username2 ProcessID2 Date2 Time2 ProcessName2 username3 ProcessID3 Date3 Time3 ProcessName3 I have to search the... (6 Replies)
Discussion started by: siri_886
6 Replies

6. Shell Programming and Scripting

help! Pattern Matching in vi or sed

I have a bunch of conf files, that contain the fully qualified names of servers. I would like to be able to use some sort of pattern matching with sed or vi, or whatever, to pull out the fully qualified server names, and dump them in a file. It just needs to work across several unix os. So, I... (4 Replies)
Discussion started by: tabini
4 Replies

7. Shell Programming and Scripting

Conf file entry.

Hi, Lets say I have a script which reads a conf file (say MASTERFILE) line by line to fetch file_name, source_path, dest_path. But currently, here the file name are static for eg: ABC.txt or XYZ.txt. So i have hard-coded in the conf file. So what happens that the script picks up the file_name... (1 Reply)
Discussion started by: amit.mathur08
1 Replies

8. UNIX for Advanced & Expert Users

converting rows to clumns using shell script

I have a script which converts rows to columns. file_name=$1 mailid=$2 #CREATE BACKUP OF ORIGINAL FILE #cp ${file_name}.xlsx ${file_name}_temp.xlsx #tr '\t' '|' < ${file_name}_temp.xlsx > ${file_name}_temp.csv #rm ${file_name}_temp.xlsx pivot_row=`head -1 ${file_name}` sed 1d... (0 Replies)
Discussion started by: andy538
0 Replies

9. Shell Programming and Scripting

What is the correct way to process files

Is there a general way I can use so as to process paths/files from your terminal without the need to backslash things? Till recently I used to use touch "file_here" but it does not work if file_here contains any of the characters ` and ", I still need to backslash them if I want to make the... (1 Reply)
Discussion started by: hakermania
1 Replies

10. Slackware

Sbin/agetty loop Prevents Boot of Slackware 12.1 Fileserver

HI everyone, Nice to meet you all. I recently rebooted Slackware 12.1 running on a Dell PowerEdge 2400. after 240 days of continuous run-time, and discovered it gets stuck in a sbin/agetty loop. We were rebooting because trying to mount root in webmin broke a bunch of things. Couldn't even get... (3 Replies)
Discussion started by: 5pac3m0nk3y
3 Replies

11. UNIX for Beginners Questions & Answers

Error with file test script

Dear friends i am getting error when i run below script #!/bin/bash echo "Enter the name of the file" read file_name if then If then echo "add some text to quit ctrld" cat >> $file_name else echo "the file does not have write permission" fi else echo "$file_name does not... (1 Reply)
Discussion started by: Ibrahims1
1 Replies

12. UNIX for Beginners Questions & Answers

Error code with if statement

hello all im new to unix and when i use below script i get an error : #! /bin/bash Echo -e "enter the name of the file : \c" read file_name if then echo "$file_name found" else echo "$file_name not found" fi running the script i get below error : $ ./hello (26 Replies)
Discussion started by: Ibrahims1
26 Replies

13. UNIX for Beginners Questions & Answers

Compare two files line by line in bash

Hello All! Thanks for taking time out and helping. My issue is, I have two files that have file names in it. Now, i need to go through each line of both the files and when the file names are different, i need to rename the file. Below is the example: File1</ fil1ename1.txt filename2,txt... (2 Replies)
Discussion started by: svks1985
2 Replies

14. Shell Programming and Scripting

Do we have generic solution get process start time in AIX & Linux

I wish to get the process start time on AiX and Linux using the same command / script. I'm able to get the process start time in Linux using the below command: cat /proc/<pid>/stat | grep Modify The same does not work for AiX 6.1 systems. Can you please let me know the command to get... (4 Replies)
Discussion started by: mohtashims
4 Replies