1 Aug 2007 01:18
Re: oracle policy
On Tue, 2007-07-31 at 16:41 -0400, rob myers wrote:
> On Tue, 2007-07-03 at 13:34 -0400, Daniel J Walsh wrote:
> > rob myers wrote:
> > >
> > > i'm not sure what you mean by breaking the helper apps and writing
> > > policy for their specific tasks. could you refer me to an example or
> > > explain a bit more?
> > >
> > If you look at postfix, you will see a good example. The idea of least
> > privs is to give an app the least privs it needs to do a job.
> >
> > As an example if your oracle app needed r/w access to the disk in order
> > to format it in a particular way, and the way it did this was to exec
> > /usr/bin/oracle_disk_format You could give oracle_t
> > fixed_disk_device_t:blk_file manage_blk_device_t; Or you could generate
> > a policy for oracle_disk_format_t,
> > and only give the helper app that permission. Oracle would only be
> > able to format the disk through the execing of the helper app.
>
> ok, that makes sense. the attached policy is a rewrite that attempts to
> implement this suggestion. feedback is always appreciated.
this patch might help, too.
--- oracle.te.orig 2007-07-31 19:12:11.000000000 -0400
+++ oracle.te 2007-07-31 19:12:46.000000000 -0400
<at> <at> -48,9 +48,10 <at> <at> allow oracle_db_t oracle_dbfile_t:file {
allow oracle_db_t oracle_dbfile_t:dir { create_dir_perms };
# Automatically transition to the correct domain
(Continue reading)
RSS Feed