All of lore.kernel.org
 help / color / mirror / Atom feed
* Developing a SELinux policy for antivirus - Activating a boolean variable when another has been actived
@ 2010-06-24 15:01 Alice Mynona
  2010-06-24 15:35 ` Xavier Toth
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Alice Mynona @ 2010-06-24 15:01 UTC (permalink / raw)
  To: SELinux

Hello,

during the developing of a SELinux module I got the following error messages when executing "audit2allow -a -l"

...
libsepol.context_from_record: type antivirus_t is not defined
libsepol.context_from_record: could not create context structure
libsepol.context_from_string: could not create context structure
libsepol.sepol_context_to_sid: could not convert unconfined_u:unconfined_r:antivirus_t:s0 to sid

"antivirus_t" is a domain I have defined in my module:

type antivirus_t;
domain_type(antivirus_t)

I have already removed the module (semodule -r antivirus.pp && semodule -R) and did a file context repair afterwards (fixfiles restore). The error still exists. 

I have reinstalled the policy (yum reinstall selinux-policy-*), but the problem remains. I have also taken a look at "file_contexts" (cd /etc/selinux/targeted/modules/active && grep antivirus_t file_contexts*), but there's no "antivirus_t" anymore.

Can you help me to find the cause of the problem? I don't know how to debug libsepol-messages.

I'm using "selinux-policy-targeted-3.6.32-118.fc12.noarch".

Thanks in advance.

Best regards,
Alice

--
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.

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Developing a SELinux policy for antivirus - Activating a boolean variable when another has been actived
@ 2010-06-21 13:58 Alice Mynona
  0 siblings, 0 replies; 15+ messages in thread
From: Alice Mynona @ 2010-06-21 13:58 UTC (permalink / raw)
  To: SELinux

Hello,

during the developing of a SELinux module for an antivirus software an additional question arised:

There a two boolean variables named "boolean_a" and "boolean_b". The SELinux module should automatically set "boolean_a" to true, if "boolean_b" has been set to true an set it to false if "boolean_b" has been deactived. Is there a way to realize this?

Thanks in advance.

Best regards,
Alice

-- 
+ Alice Mynona
+ Email: Alice_Mynona@bian-fu.net





--
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.

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2010-06-25 21:04 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-24 15:01 Developing a SELinux policy for antivirus - Activating a boolean variable when another has been actived Alice Mynona
2010-06-24 15:35 ` Xavier Toth
2010-06-24 17:12   ` Alice Mynona
2010-06-24 16:14 ` Dominick Grift
2010-06-24 17:05   ` Alice Mynona
2010-06-24 17:12 ` Stephen Smalley
2010-06-24 17:33   ` Stephen Smalley
2010-06-25 10:11     ` Alice Mynona
2010-06-25 10:30       ` Dominick Grift
2010-06-25 20:18         ` Daniel J Walsh
2010-06-25 20:23           ` Stephen Smalley
2010-06-25 20:25             ` Stephen Smalley
2010-06-25 20:47               ` Daniel J Walsh
2010-06-25 21:04                 ` Stephen Smalley
  -- strict thread matches above, loose matches on Subject: below --
2010-06-21 13:58 Alice Mynona

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.