All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jiann-Ming Su <sujiannming@gmail.com>
To: selinux@tycho.nsa.gov
Subject: Re: MySQL Policy Patch
Date: Fri, 5 Nov 2004 14:53:19 -0500	[thread overview]
Message-ID: <561dc32604110511531fbd1e33@mail.gmail.com> (raw)
In-Reply-To: <1098205374.29525.99.camel@moss-spartans.epoch.ncsc.mil>

On Tue, 19 Oct 2004 13:02:54 -0400, Stephen Smalley <sds@epoch.ncsc.mil> wrote:
> 
> IIRC, on FC2, you would do:
> yum install policy-sources
> cd /etc/security/selinux/src/policy
> vi domains/program/mysqld.te
> 
> to look at the mysqld policy that shipped with FC2.  But you would
> likely do better to update to FC3T3 if using SELinux, as much has
> changed and FC2 policy hasn't had any updates AFAIK.
> 
FC3T3 wouldn't install on my system, so I'm having to work through
FC2.  When I try to run "/etc/init.d/mysql start" as root, I get the
following in dmesg:

audit(1099684144.872:0): avc:  denied  { read } for  pid=5099
exe=/bin/su name=.default_contexts dev=sda5 ino=213003
scontext=jms:user_r:user_su_t tcontext=root:object_r:staff_home_dir_t
tclass=file
inode_doinit_with_dentry: 
context_to_sid(system_u:object_r:mysql_home_dir_t) returned 22 for
dev=sda8 ino=1107617
audit(1099684153.056:0): avc:  denied  { associate } for  pid=5163
exe=/usr/sbin/mysqld-max name=booboo.lower-test
scontext=root:object_r:unlabeled_t tcontext=system_u:object_r:fs_t
tclass=filesystem
audit(1099684153.094:0): avc:  denied  { associate } for  pid=5163
exe=/usr/sbin/mysqld-max name=mysql.sock
scontext=root:object_r:unlabeled_t tcontext=system_u:object_r:fs_t
tclass=filesystem

What do I need to do so that mysql will start on my system, and users
can access the mysql database?  I've tried adding mysqld_r to the
users file, but mysqld_r is not a role.  Sorry for being so slow with
this.  Thanks for any info.

-- 
Jiann-Ming Su
"I have to decide between two equally frightening options. 
 If I wanted to do that, I'd vote." --Duckman

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

  reply	other threads:[~2004-11-05 19:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-18 15:49 MySQL Policy Patch Alex Ackerman
2004-10-18 16:34 ` Stephen Smalley
2004-10-28 13:01   ` Russell Coker
2004-10-19 16:56 ` Jiann-Ming Su
2004-10-19 17:02   ` Stephen Smalley
2004-11-05 19:53     ` Jiann-Ming Su [this message]
2004-11-23  5:09       ` Russell Coker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=561dc32604110511531fbd1e33@mail.gmail.com \
    --to=sujiannming@gmail.com \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.