From: Rongqing Li <rongqing.li@windriver.com>
To: bigclouds <bigclouds@163.com>
Cc: selinux <selinux@tycho.nsa.gov>
Subject: Re: how to change the context of running process
Date: Tue, 11 Feb 2014 09:18:26 +0800 [thread overview]
Message-ID: <52F97A62.2090500@windriver.com> (raw)
In-Reply-To: <7a7a5f0f.8499.1441971524d.Coremail.bigclouds@163.com>
On 02/10/2014 09:37 AM, bigclouds wrote:
> hi,all
> 1.
> how to change the context of running process.
> 2.
> in my case, libvirtd is initrc_t, how to find where and which file defines this rule?
> libvirtd should be virtd_t, i want to correct it.
The scontext should be virtd_exec_t, and the process
context should be virtd_t, it is defined in virt.fc.
./policy/modules/contrib/virt.fc:/usr/sbin/libvirtd --
gen_context(system_u:object_r:virtd_exec_t,s0)
Please make sure the libvirtd is installed into correct path.
> 3.audot2allow outputs a rule ,'allow initrc_t svirt_t:process transition'
> is there a comamnd line tool can finish this request? not to install .pp module?
the correct transition rule should be
./virt.tmp: allow initrc_t virtd_t:process transition;
./virt.tmp: type_transition initrc_t virtd_exec_t:process virtd_t;
-Roy
>
> thanks
>
>
>
>
> _______________________________________________
> Selinux mailing list
> Selinux@tycho.nsa.gov
> To unsubscribe, send email to Selinux-leave@tycho.nsa.gov.
> To get help, send an email containing "help" to Selinux-request@tycho.nsa.gov.
>
--
Best Reagrds,
Roy | RongQing Li
next prev parent reply other threads:[~2014-02-11 1:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-10 1:37 how to change the context of running process bigclouds
2014-02-11 1:18 ` Rongqing Li [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-02-08 6:47 bigclouds
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=52F97A62.2090500@windriver.com \
--to=rongqing.li@windriver.com \
--cc=bigclouds@163.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.