From: justinmattock@gmail.com (Justin P. Mattock) Date: Wed, 19 Jan 2011 10:06:33 -0800 Subject: [refpolicy] WARNING: at kernel/printk.c:430 do_syslog+0x40d/0x441() Message-ID: <4D372829.5090509@gmail.com> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com this is showing up with the latest kernel in enforcing mode.. (I have not update the policy and/or selinux userspace) [ 12.803882] type=1400 audit(1295457694.801:3): avc: denied { syslog } for pid=1540 comm="rsyslogd" capability=34 scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=capability2 [ 12.803888] ------------[ cut here ]------------ [ 12.803894] WARNING: at kernel/printk.c:430 do_syslog+0x40d/0x441() [ 12.803896] Hardware name: iMac9,1 [ 12.803898] Attempt to access syslog with CAP_SYS_ADMIN but no CAP_SYSLOG (deprecated and denied). [ 12.803900] Modules linked in: twofish_generic twofish_x86_64 twofish_common ctr ah4 esp4 authenc uhci_hcd hci_uart rfcomm lib80211_crypt_tkip nf_nat_irc hidp nf_conntrack_irc wl(P) nf_nat_ftp l2cap nf_nat nf_conntrack_ipv4 coretemp nf_defrag_ipv4 acpi_cpufreq mperf appletouch nf_conntrack_ftp nf_conntrack iptable_filter button uvcvideo processor btusb ip_tables videodev evdev bluetooth x_tables applesmc i2c_nforce2 firewire_ohci firewire_core forcedeth ohci_hcd ehci_hcd [ 12.803943] Pid: 1540, comm: rsyslogd Tainted: P 2.6.38-rc1 #5 [ 12.803946] Call Trace: [ 12.803950] [] ? warn_slowpath_common+0x80/0x98 [ 12.803954] [] ? warn_slowpath_fmt+0x41/0x43 [ 12.803958] [] ? do_syslog+0x40d/0x441 [ 12.803963] [] ? do_raw_spin_lock+0x6b/0x118 [ 12.803968] [] ? kmsg_open+0x17/0x19 [ 12.803972] [] ? proc_reg_open+0xac/0x149 [ 12.803975] [] ? kmsg_open+0x0/0x19 [ 12.803979] [] ? kmsg_release+0x0/0x18 [ 12.803982] [] ? proc_reg_open+0x0/0x149 [ 12.803987] [] ? __dentry_open+0x15d/0x282 [ 12.803991] [] ? nameidata_to_filp+0x50/0x57 [ 12.803995] [] ? finish_open+0x9c/0x1a3 [ 12.803999] [] ? do_path_lookup+0x66/0x109 [ 12.804015] [] ? do_filp_open+0x1b6/0x6a4 [ 12.804019] [] ? check_object+0x13b/0x1e8 [ 12.804023] [] ? do_raw_spin_unlock+0x8f/0x98 [ 12.804027] [] ? alloc_fd+0x111/0x123 [ 12.804031] [] ? do_sys_open+0x5b/0xed [ 12.804035] [] ? sys_open+0x1b/0x1d [ 12.804039] [] ? system_call_fastpath+0x16/0x1b [ 12.804042] ---[ end trace 03d1aa6aedda8529 ]--- when using audit2allow I get: allow init_t self:capability2 syslog; which gives an error when trying to install the module, due to the policy not knowing what capability2 is system is ubuntu maverick, if this is already in(refpolicy) then I'll pull the latest when I get a chance.. Justin P. Mattock