From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: [PATCH] selinux: print leading 0x on ioctlcmd audits Date: Fri, 15 Jul 2016 16:12:00 -0400 Message-ID: <3202855.kL3XDMPVcx@x2> References: <1468524562-30981-1-git-send-email-william.c.roberts@intel.com> <3333447.I3SejC0nv6@x2> <476DC76E7D1DF2438D32BFADF679FC5601258605@ORSMSX103.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <476DC76E7D1DF2438D32BFADF679FC5601258605@ORSMSX103.amr.corp.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: "Roberts, William C" Cc: "seandroid-list@tycho.nsa.gov" , "selinux@tycho.nsa.gov" , "linux-audit@redhat.com" List-Id: linux-audit@redhat.com On Friday, July 15, 2016 7:49:22 PM EDT Roberts, William C wrote: > > I also asked some other questions. Is this the ioctl number? As in > > syscall arg a1? I need to know if its the same thing so that I can hook > > up its translation if so. > > Yes, per man ioctl, it's the "request number". Assuming a0 is the file > descriptor, then a1 is the Ioctlcmd value. OK, great. I hooked this field up to the translator so that the ioctl name can be printed (if known). Thanks, -Steve From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb To: "Roberts, William C" Cc: Paul Moore , William Roberts , "seandroid-list@tycho.nsa.gov" , "selinux@tycho.nsa.gov" , "linux-audit@redhat.com" Subject: Re: [PATCH] selinux: print leading 0x on ioctlcmd audits Date: Fri, 15 Jul 2016 16:12:00 -0400 Message-ID: <3202855.kL3XDMPVcx@x2> In-Reply-To: <476DC76E7D1DF2438D32BFADF679FC5601258605@ORSMSX103.amr.corp.intel.com> References: <1468524562-30981-1-git-send-email-william.c.roberts@intel.com> <3333447.I3SejC0nv6@x2> <476DC76E7D1DF2438D32BFADF679FC5601258605@ORSMSX103.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Friday, July 15, 2016 7:49:22 PM EDT Roberts, William C wrote: > > I also asked some other questions. Is this the ioctl number? As in > > syscall arg a1? I need to know if its the same thing so that I can hook > > up its translation if so. > > Yes, per man ioctl, it's the "request number". Assuming a0 is the file > descriptor, then a1 is the Ioctlcmd value. OK, great. I hooked this field up to the translator so that the ioctl name can be printed (if known). Thanks, -Steve