From: "Daniel Musgrave" <dmusgrave@abodiosoftware.com>
To: selinux@tycho.nsa.gov
Subject: Invalid context in targeted SELinux policy
Date: Tue, 15 Aug 2006 21:50:29 +0000 [thread overview]
Message-ID: <W7685912732296271155678629@webmail16> (raw)
I am in the process of writing an application and associated policy in Centos 4.3, running a targeted SELinux environment at version 1.17.30-2.126. After succesfully creating the necessary rules in my .te file, and the associated file contexts in the .fc file, I am attempting to resolve one last problem. After compiling my policy and running the application, I get the following error:
audit(...): security_compute_sid: invalid context root:system_r:upgrade_t for scontext=root:system_r:unconfined_t tcontext=system_u:object_r:upgrade_exec_t tclass=process
The domain for this executable is 'upgrade' and the file context of the binary is 'upgrade_exec_t' (there are some associated *_log_t and *_tmp_t files as well). The .te file defines upgrade using the application_domain macro.
I have thus far been unable to find any sort of documentation or discussion that relates to this specific problem (most file_context issues seem to come from improperly-formatted .fc files during labeling, rather than at runtime). Am I forgetting to include some line in my .te file? Do I need to include the new domain/type I've created in some other location? Any insight you can provide would be greatly appreciated.
Thanks,
Daniel
PS - here is my .fc file, in case my problem somehow *does* involve it.
upgrade.fc
# upgrade
/usr/bin/upgrade -- system_u:object_r:upgrade_exec_t
/var/log/upgrade.log -- system_u:object_r:upgrade_log_t
/tmp/upgrade(/.*)? -- system_u:object_r:upgrade_tmp_t
--
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.
next reply other threads:[~2006-08-15 21:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-15 21:50 Daniel Musgrave [this message]
2006-08-16 13:02 ` Invalid context in targeted SELinux policy Karl MacMillan
2006-08-16 13:19 ` Karl MacMillan
2006-08-16 13:37 ` Erich Schubert
2006-08-16 13:24 ` Stephen Smalley
-- strict thread matches above, loose matches on Subject: below --
2006-08-16 15:21 Daniel Musgrave
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=W7685912732296271155678629@webmail16 \
--to=dmusgrave@abodiosoftware.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.