All of lore.kernel.org
 help / color / mirror / Atom feed
* strange audit2allow error
@ 2017-02-27  4:24 Russell Coker
  0 siblings, 0 replies; only message in thread
From: Russell Coker @ 2017-02-27  4:24 UTC (permalink / raw)
  To: selinux

# audit2allow -l < /var/log/audit/audit.log -R

require {
        type devicekit_power_t;
}

#============= devicekit_power_t ==============
devicekit_dbus_chat_power(devicekit_power_t)
# audit2allow -l < /var/log/audit/audit.log 


#============= devicekit_power_t ==============
allow devicekit_power_t dpkg_script_t:dbus send_msg;

Above is the output of audit2allow.  For some reason audit2allow -R is 
generating the wrong parameter for devicekit_dbus_chat_power().

Here is the interface in question:

########################################
## <summary>
##      Send and receive messages from
##      devicekit power over dbus.
## </summary>
## <param name="domain">
##      <summary>
##      Domain allowed access.
##      </summary>
## </param>
#
interface(`devicekit_dbus_chat_power',`
        gen_require(`
                type devicekit_power_t;
                class dbus send_msg;
        ')

        allow $1 devicekit_power_t:dbus send_msg;
        allow devicekit_power_t $1:dbus send_msg;
')

Any ideas on how to debug this?

-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-02-27  4:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-27  4:24 strange audit2allow error Russell Coker

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.