Skip to contentSkip to conversation

mysql policy

DISCUSSION Tom 1 participant 1 message Oct 30, 2002 SELinux security module

lore
Share & tools
lore

Tom

author
#0 lore raw

What is the best-practice on labelling script files? Should they be treated with more care than binaries?

I'm asking because I have largely tossed Russell's mysqld domain and started a new one from scratch, not because Russell's was in any way bad but because doing so allows me to better understand what is happening and what permissions it needs.
This way I found out that the wrapper (safe_mysqld) that the init script uses to start mysqld requires some more and other permissions than the daemon itself, so I'm thinking about putting it into a different domain so that the daemon, once running, doesn't have all those unneeded priviledges.

safe_mysqld is a shell script. I can't see a problem with that from the pure "hacking" perspective (modifying a shell script is not that much easier than modifying a binary), but maybe its reliance on /bin/sh makes it a different game?

Signature · 8 lines
PGP/GPG key: http://web.lemuria.org/pubkey.html
pub  1024D/2D7A04F5 2002-05-16 Tom Vogt <[email protected]>
     Key fingerprint = C731 64D1 4BCF 4C20 48A4  29B2 BF01 9FA1 2D7A 04F5

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.