Displaying 20 results from an estimated 10000 matches similar to: "A touch conused on context"
2007 Dec 17
2
Digest Subcriber needs help with SELinux file context setting
CentOS-5.1
I need some help with setting up the SELinux context for a custom httpd
directory so that I can write log files into it. This is what I have:
In my virtual host config file:
RewriteEngine on
RewriteLog /etc/httpd/virtual.d/trac-rewrite.log
# RewriteLogLevel 0=off 1=basic 2=verbose 3+=module developer debuging
RewriteLogLevel 0
If /etc/httpd/virtual.d/trac-rewrite.log does
2019 May 08
3
Issues trying to change the selinux context
Warren Young wrote:
> On May 8, 2019, at 9:31 AM, mark <m.roth at 5-cent.us> wrote:
>
>> semanage -fcontext -a -t lib_t "/<elided>/smwa/webagent/bin(/.*).so?
>
> [snip]
>
>> What am I doing wrong?
>>
<snip>
> Also, I?m confused by the parens in your file path. Whether your shell
> is or not is a different question.
I'm following
2019 May 08
2
Issues trying to change the selinux context
We're forced to use Siteminder, by CA, who have no clue what they're doing
in *nix. No packages, tarballs...
Anyway, I'm trying clean up some stuff, and in /*/smwa/webagent/bin (all
their binaries, including .so's, are in there, duh... I'm trying to set
the .so's to lib_t.
semanage -fcontext -a -t lib_t "/<elided>/smwa/webagent/bin(/.*).so"
gives me the
2016 Oct 17
3
SELinux context not applied
Hi,
I tried to apply a security context on a directory with the following
commands:
[root@ local]# semanage fcontext -a -t httpd_sys_rw_content_t "netdot(/.*)?"
[root@ local]# restorecon -R netdot/
When I list the contexts, it is part of the list....
[root@ local]# semanage fcontext -l | grep netdot
./netdot(/.*)? all files
2012 Nov 26
0
Installation and Setup of Samba4 AD DC on CentOS6
I have setup a Samba4 server and would like to report my experiences in
the hope that it may be helpful to others.
I basically followed the official Samba4 HowTo, which is very good.
Based on what I have seen, this is the only document I would recommend
people to follow. I will try not to repeat things that are covered in
the HowTo, but rather focus on what I did differently or additionally,
2017 Feb 08
0
selinux contexts for openntpd portable
I was wondering if someone could help with selinux context for the portable
openntpd library on centos7.
I compiled openntpd-6.0p1 and it runs great on centos7, but have not had
much luck with selinux contexts for it.
This is what I tried-
semanage fcontext -a -t ntp_conf_t /usr/local/etc/ntpd.conf # seems to work
semanage fcontext -a -t ntpd_exec_t /usr/local/sbin/ntpd # gets reset on
2010 Dec 18
0
cobbler fails to recognize semanage rules
I am having a bit of trouble setting up cobbler on this machine.
cobbler check points out a few things to correct:
[root at VIRTCENT04:~]#cobbler check
The following are potential configuration items that you may want to fix:
1 : you need to set some SELinux content rules to ensure cobbler
serves content correctly in your SELinux environment, run the
following: /usr/sbin/semanage fcontext -a
2017 Oct 23
2
Unable to apply mysqld_db_t to mysql directory
Thanks, I managed to fix /var/lib/mysql
# ls -ldZ /var/lib/mysql
drwxr-xr-x. mysql mysql system_u:object_r:mysqld_db_t:s0 /var/lib/mysql
To fix it, I tried:
semanage fcontext -d -e /var/lib/mysql
this command returned:
KeyError: /var/lib/mysql
I tried restorecon anyway:
restorecon -Rv /var/lib/mysql
But not better:
ls -ldZ /var/lib/mysql
drwxr-xr-x. mysql mysql system_u:object_r:var_lib_t:s0
2019 May 08
1
Issues trying to change the selinux context
Warren Young wrote:
> On May 8, 2019, at 11:04 AM, mark <m.roth at 5-cent.us> wrote:
>
>>
>> semanage fcontext -m -t lib_t "/path/smwa/webagent/bin/*.so?
>
> Glob expansion doesn?t happen in double quotes. Not in Bash, anyway.
Huh? I thought it didn't occur in single quotes, but did occur in quotes.
Odd, I'm seeing it doesn't, at least in a basic
2017 Oct 23
0
Unable to apply mysqld_db_t to mysql directory
On 23 October 2017 at 19:18, Bernard Fay <bernard.fay at gmail.com> wrote:
> Thanks, I managed to fix /var/lib/mysql
>
> # ls -ldZ /var/lib/mysql
> drwxr-xr-x. mysql mysql system_u:object_r:mysqld_db_t:s0 /var/lib/mysql
>
> To fix it, I tried:
> semanage fcontext -d -e /var/lib/mysql
> this command returned:
> KeyError: /var/lib/mysql
> I tried restorecon
2017 Oct 23
0
Unable to apply mysqld_db_t to mysql directory
On 23 Oct 2017 5:26 pm, "Bernard Fay" <bernard.fay at gmail.com> wrote:
Interesting to see the Equivalence. As a first thing, I tried:
semanage fcontext -a -e /var/lib/mysql.old /var/lib/mysql
then
restorecon -R /var/lib/mysql
# semanage fcontext -lC
SELinux fcontext type
Context
/home/users(/.*)? all files
2009 Mar 19
1
SELinux - different context on subdirectories
Hi all,
I have created a directory /srv with the following SELinux context:
system_u:object_r:var_t
Now I want to create a subdirectory within /srv which should get a
different context. So I tried to set e.g.:
semanage fcontext -a -t samba_share_t /srv/samba
/sbin/restorecon -v /srv/samba
but the context is always reset to:
system_u:object_r:var_t
What am I missing?
Best Regards
Marcus
2017 Oct 23
2
Unable to apply mysqld_db_t to mysql directory
Interesting to see the Equivalence. As a first thing, I tried:
semanage fcontext -a -e /var/lib/mysql.old /var/lib/mysql
then
restorecon -R /var/lib/mysql
# semanage fcontext -lC
SELinux fcontext type
Context
/home/users(/.*)? all files
system_u:object_r:user_home_dir_t:s0
/var/lib/mysql all
2017 Dec 12
0
Spamassassin vs. SELinux trouble
On 12/12/2017 04:37 AM, Nicolas Kovacs wrote:
> Spamassassin has been working nicely on my main server running CentOS 7
> and Postfix. SELinux is activated (Enforcing).
> ...
> SELinux is preventing /usr/bin/perl from 'read, write' accesses on the
> file /var/log/spamassassin/.spamassassin/bayes_toks.
> ...
> Source Context system_u:system_r:spamd_t:s0
2018 May 04
2
Samba HOWTO wiki bug: chcon samba_share_t
On May 4, 2018, at 5:13 PM, Gordon Messmer <gordon.messmer at gmail.com> wrote:
>
> On 05/04/2018 12:03 PM, Warren Young wrote:
>> ?there is a command down in section 2 that gives an error here on CentOS 7:
>>
>> $ sudo semanage fcontext ?at samba_share_t /path/to/share
>> ?noise noise noise?
>> semanage: error: unrecognized arguments:
2019 May 08
0
Issues trying to change the selinux context
On May 8, 2019, at 9:31 AM, mark <m.roth at 5-cent.us> wrote:
>
> semanage -fcontext -a -t lib_t "/<elided>/smwa/webagent/bin(/.*).so?
[snip]
> What am I doing wrong?
-fcontext isn?t an option, it?s a verb; drop the dash.
Also, I?m confused by the parens in your file path. Whether your shell is or not is a different question.
2016 Sep 16
0
SELinux module
I do not want to disable SELinux at large but only for a directory and its
sub-directories.
On Fri, Sep 16, 2016 at 8:31 AM, Eddie G. O'Connor Jr. <eoconnor25 at gmail.com
> wrote:
> Not sure about most others, but I was always told that you never disable
> Selina. Of course that is in a business/corporate setting. If it's just
> you at home with a few servers? Then
2019 Apr 16
4
Time Synchronisation - SELinux Labeling and Policy
hi, i want set selinux to usw with ntpd
but when i run (as described in wiki)
semanage -a -t ntpd_t "/usr/local/samba/var/lib/ntp_signd"
i have that error
"
usage: semanage [-h]
{import,export,login,user,port,ibpkey,ibendport,interface,module,node,fcontext,boolean,permissive,dontaudit}
...
semanage: error: argument subcommand: invalid choice:
2017 May 01
2
selinux problem policies
Hello,
On Sonntag, 30. April 2017 18:40:23 CEST Gordon Messmer wrote:
> On 04/30/2017 07:03 AM, G?nther J. Niederwimmer wrote:
> > I write this!
> >
> > semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html(/.*)?/
> > typo3conf(/.*)?"
>
> OK. Did you get an error?
I have only Errors ;-).
when I like to set this Rule ?
semanage fcontext -a
2015 Mar 05
1
SELinux kills Cassandra based website
Hi Jeremy,
An easy way to start troubleshooting these is to look at the audit logs and
> see what SELInux is blocking. You have /McFrazier in the email.. if that's
> off the root tree than unless you've set permissions to allow httpd to look
> at tat folder, I bet that's one problem.
> if you run ls -Z you can see the labels that are present on those folders,
> that