04-07-2013
8 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I am on a fedora core 2.6.9-1.677 i686
which is selinux enabled unlike the version I was on before .. which had to be manually enabled ..and if you knew nothing of the sort you were lost.. that was the case for me anyway! like i was saying ... now I am on a system that is enabled I have just... (1 Reply)
Discussion started by: moxxx68
1 Replies
2. Linux
in fedora core 2 with enforcing mode in selinux , why even as a root OS doesnt give permission to create any directory or file in /home ? (1 Reply)
Discussion started by: the.last.soul
1 Replies
3. Red Hat
When I installed Fedora 10 I set the option to encrypt my file systems but now I can't open either of my two HDD's. I asks me for my password and gives me three options concerning the "remembering" of my password but when I put the password in nothing happens at all. Any ideas? Thanks. (3 Replies)
Discussion started by: jasonfrost
3 Replies
4. Virtualization and Cloud Computing
Hi,
Has anyone enabled SELinux on Amazon EC2?
I tried to enable SELinux using a CentOS image, and the steps in the following post, but it didn't work!!
Amazon Web Services Developer Community : Has anyone successfully enabled SELinux ...
The steps i took:
1)I started with CentOS 5.3 base... (5 Replies)
Discussion started by: fun_indra
5 Replies
5. Red Hat
Hi All,
Will some one kindly explian below ?
selinux
What is the effect of installing a server using this kickstart option as follows:
selinux --enforcing
and
selinux --disabled (1 Reply)
Discussion started by: sri243
1 Replies
6. Cybersecurity
Hi, I can not start named service:
/etc/init.d/named start
Iniciando named:
Error in named configuration:
zone default.domain/IN: loading from master file /home/admin/conf/dns/default.domain.db failed: permission denied
zone default.domain/IN: not loaded due to errors.... (2 Replies)
Discussion started by: Anibal
2 Replies
7. Red Hat
Hi,
in /etc/httpd/conf/httpd.conf
#DocumentRoot "/var/www/html"
DocumentRoot "/home/phpmy/html"
when I restarted httpd
# /etc/init.d/httpd restart
Stopping httpd:
Starting httpd: Syntax error on line 293 of /etc/httpd/conf/httpd.conf:... (0 Replies)
Discussion started by: jediwannabe
0 Replies
8. UNIX for Dummies Questions & Answers
I worked all night on creating an RHEL 7 template customized for our private cloud and almost had it ready. While doing the final part, enabling GDM, I made the blunder of disabling SELINUX. Now I am not able to re-enable or put into permissive mode again. Earlier, when this happened on RHEL 6... (3 Replies)
Discussion started by: satish51392111
3 Replies
LEARN ABOUT DEBIAN
fgetfilecon
getfilecon(3) SELinux API documentation getfilecon(3)
NAME
getfilecon, fgetfilecon, lgetfilecon - get SELinux security context of a file
SYNOPSIS
#include <selinux/selinux.h>
int getfilecon(const char *path, security_context_t *con);
int lgetfilecon(const char *path, security_context_t *con);
int fgetfilecon(int fd, security_context_t *con);
DESCRIPTION
getfilecon retrieves the context associated with the given path in the file system, the length of the context is returned.
lgetfilecon is identical to getfilecon, except in the case of a symbolic link, where the link itself is interrogated, not the file that it
refers to.
fgetfilecon is identical to getfilecon, only the open file pointed to by filedes (as returned by open(2)) is interrogated in place of path.
The returned context should be freed with freecon if non-NULL.
RETURN VALUE
On success, a positive number is returned indicating the size of the extended attribute value. On failure, -1 is returned and errno is set
appropriately.
If the context does not exist, or the process has no access to this attribute, errno is set to ENODATA.
If extended attributes are not supported by the filesystem, or are dis- abled, errno is set to ENOTSUP.
The errors documented for the stat(2) system call are also applicable here.
SEE ALSO
selinux(8), freecon(3), setfilecon(3), setfscreatecon(3)
russell@coker.com.au 1 January 2004 getfilecon(3)