~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to kernel/audit.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
int             audit_enabled;
75
75
int             audit_ever_enabled;
76
76
 
 
77
EXPORT_SYMBOL_GPL(audit_enabled);
 
78
 
77
79
/* Default state when kernel boots without any parameters. */
78
80
static int      audit_default;
79
81
 
671
673
 
672
674
        pid  = NETLINK_CREDS(skb)->pid;
673
675
        uid  = NETLINK_CREDS(skb)->uid;
674
 
        loginuid = NETLINK_CB(skb).loginuid;
675
 
        sessionid = NETLINK_CB(skb).sessionid;
676
 
        sid  = NETLINK_CB(skb).sid;
 
676
        loginuid = audit_get_loginuid(current);
 
677
        sessionid = audit_get_sessionid(current);
 
678
        security_task_getsecid(current, &sid);
677
679
        seq  = nlh->nlmsg_seq;
678
680
        data = NLMSG_DATA(nlh);
679
681