From: Tom <tom@lemuria.org>
To: Russell Coker <russell@coker.com.au>
Cc: selinux@tycho.nsa.gov
Subject: Re: mysql policy
Date: Mon, 28 Oct 2002 16:12:07 +0100 [thread overview]
Message-ID: <20021028161207.B8537@lemuria.org> (raw)
In-Reply-To: <20021028150547.A7632@lemuria.org>; from tom@lemuria.org on Mon, Oct 28, 2002 at 03:05:47PM +0100
[-- Attachment #1: Type: text/plain, Size: 611 bytes --]
Here's a small patch to mysqld.te which solves the startup problem for
me and lets mysqld run without any error.
I believe these changes do not open any security problems as they don't
give init access to the databases. One could do away with the
requirement to write into the /var/lib/mysql directory with a few
changes to the safe_mysqld startup script, but I don't think it would
make much of a difference, security-wise.
--
PGP/GPG key: http://web.lemuria.org/pubkey.html
pub 1024D/2D7A04F5 2002-05-16 Tom Vogt <tom@lemuria.org>
Key fingerprint = C731 64D1 4BCF 4C20 48A4 29B2 BF01 9FA1 2D7A 04F5
[-- Attachment #2: mysqld.diff --]
[-- Type: text/plain, Size: 713 bytes --]
--- default/domains/program/mysqld.te 2002-10-27 02:29:00.000000000 +0200
+++ current/domains/program/mysqld.te 2002-10-28 17:32:28.000000000 +0100
@@ -26,6 +26,8 @@
allow initrc_t var_run_mysqld_t:sock_file write;
allow initrc_t mysqld_log_t:file { write append setattr ioctl };
+allow initrc_t etc_mysqld_t:file { read };
+allow initrc_t mysqld_db_t:dir { write };
allow mysqld_t self:capability { setgid setuid };
allow mysqld_t self:process getsched;
@@ -34,7 +36,8 @@
# Allow access to the mysqld databases
create_dir_file(mysqld_t, mysqld_db_t)
-allow mysqld_t var_lib_t:dir search;
+allow mysqld_t var_lib_t:dir { getattr search };
+
# read config files
r_dir_file(mysqld_t, etc_mysqld_t)
next prev parent reply other threads:[~2002-10-28 15:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-28 10:01 mysql policy Tom
2002-10-28 12:24 ` Russell Coker
2002-10-28 12:58 ` Tom
2002-10-28 13:47 ` Russell Coker
2002-10-28 14:05 ` Tom
2002-10-28 15:12 ` Tom [this message]
2002-10-29 19:16 ` Stephen Smalley
2002-10-29 19:49 ` Tom
2002-10-29 20:07 ` Stephen Smalley
2002-10-30 6:51 ` Tom
2002-10-30 14:32 ` Tom
-- strict thread matches above, loose matches on Subject: below --
2002-10-30 9:35 Tom
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=20021028161207.B8537@lemuria.org \
--to=tom@lemuria.org \
--cc=russell@coker.com.au \
--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.