Sponsored Content
Operating Systems Linux Red Hat (.) at the end of file attribute. Post 302825329 by hergp on Monday 24th of June 2013 06:10:34 AM
Old 06-24-2013
SELinux security contexts are extended attributes stored with all kinds of filesystem objects, If you disable SELinux, the attributes are still on disk, they are just not used for checking.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

File Created On attribute

Hi, I need to find out when a file has been created. 'ls -l' just lists the last date the file was modified. I have also noticed when viewing the attributes through NT, the last modified date is the same as the file creation date. I thought maybe this was a fault due to samba. I guess what... (1 Reply)
Discussion started by: dpalmer
1 Replies

2. Linux

File attribute Help please

Could anyone help i have a question that i have a problem with for my home work it is, How do i change file permissions in a command line enviromet thanx (1 Reply)
Discussion started by: Cube3k
1 Replies

3. Programming

UNIX->C++ File attribute

Hi to all, I need in Microsoft C++ to IDENTIFY unix files which are LINKS. I use CFTPFILEFIND class. Thanks :-) .:rolleyes: (0 Replies)
Discussion started by: mizrachi
0 Replies

4. Shell Programming and Scripting

Dynamic Attribute Changes

Hello , I am stuck out in a part of my script, though I am trying it through a script of loops but i emphasis on having a short code : Input file has Attribute values changing with time Date Monday October 30 10:22:56 IST 2006 object values references Date ... (8 Replies)
Discussion started by: er_aparna
8 Replies

5. Shell Programming and Scripting

Taking a particular attribute's value in a file...

HI, Iam new to scripting..I need some guidance for invoking the following logic.. My input file contains Event Time = Thu, Nov 6, 2008 08:41:56 AM Probable Cause = UnspecifiedReason Specific Problems = BTS down due to Tx ... (16 Replies)
Discussion started by: Llb
16 Replies

6. Shell Programming and Scripting

Add end of char \n on end of file

Hi, I want to add \n as a EOF at the end of file if it does't exist in a single command. How to do this? when I use command echo "1\n" > a.txt and od -c a.txt 0000000 1 \n \n 0000003 How does it differentiate \n and eof in this case? Regards, Venkat (1 Reply)
Discussion started by: svenkatareddy
1 Replies

7. Red Hat

Password Attribute

Hello Friends , Where do i check the following settings in redhat ? 1. Minimum required number of characters in the password (passwordMinLength) 2. Minimum number of digit characters, meaning numbers between zero and nine (passwordMinDigits) 3. Minimum number of ASCII alphabetic... (2 Replies)
Discussion started by: avklinux
2 Replies

8. Shell Programming and Scripting

Changing attribute value in xml file using shell

I have an xml file.I want to change the value of some tag: <WASConfig version='1.1'> <JavaVirtualMachine> <scope> <server> <hostNode>myAsNode</hostNode> <name>myserver</name> </server> </scope> <Settings> <Setting> ... (5 Replies)
Discussion started by: javaholics
5 Replies

9. UNIX for Dummies Questions & Answers

How to use xml_grep to get the value of an attribute?

I'm using xml_grep command to get the value of different tags in a xml-file. No i also need the value of an attribute in a tag. Can I use xml_grep for this? Does anybody know how? ex. : <Name xmlns:xsi="http://www.w3.org/2001/XMLinst" xsi:spaceSchema="Name_5879.xsd"> ... </Name> I... (1 Reply)
Discussion started by: pistach
1 Replies

10. Shell Programming and Scripting

Script to check the string in a file and print an attribute in the message

Hi, I am new to shell scripting and got a task to complete. Task is : we have a log file where in i need to traverse through the whole file to check the string "Person Type missing in message" and after that i need to get EMPLID=xxxxxx from the file and print details in a different file. ... (1 Reply)
Discussion started by: suren424
1 Replies
selinux_file_context_verify(3)				     Library Functions Manual				    selinux_file_context_verify(3)

NAME
selinux_file_context_verify - Compare the SELinux security context on disk to the default security context required by the policy file con- texts file SYNOPSIS
#include <selinux/selinux.h> int selinux_file_context_verify(const char *path, mode_t mode); DESCRIPTION
selinux_file_context_verify() compares the context of the specified path that is held on disk (in the extended attribute), to the system default entry held in the file contexts series of files. The mode may be zero. Note that the two contexts are compared for "significant" differences (i.e. the user component of the contexts are ignored) as shown in the EXAMPLE section. RETURN VALUE
If the contexts significantly match, 1 (one) is returned. If the contexts do not match 0 (zero) is returned and errno is set to either ENOENT or EINVAL for the reasons listed in the ERRORS section, or if errno = 0 then the contexts did not match. On failure -1 is returned and errno set appropriately. ERRORS
ENOTSUP if extended attributes are not supported by the file system. ENOENT if there is no entry in the file contexts series of files or path does not exist. EINVAL if the entry in the file contexts series of files or path are invalid, or the returned context fails validation. ENOMEM if attempt to allocate memory failed. FILES
The following configuration files (the file contexts series of files) supporting the active policy will be used (should they exist) to determine the path default context: contexts/files/file_contexts - This file must exist. contexts/files/file_contexts.local - If exists has local customizations. contexts/files/file_contexts.homedirs - If exists has users home directory customizations. contexts/files/file_contexts.subs - If exists has substitutions that are then applied to the 'in memory' version of the file con- texts files. EXAMPLE
If the files context is: unconfined_u:object_r:admin_home_t:s0 and the default context defined in the file contexts file is: system_u:object_r:admin_home_t:s0 then the actual strings compared are: :object_r:admin_home_t:s0 and :object_r:admin_home_t:s0 Therefore they will match and selinux_file_context_verify() will return 1. SEE ALSO
selinux(8) SELinux API documentation 08 March 2011 selinux_file_context_verify(3)
All times are GMT -4. The time now is 05:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy