]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
audith-replace-defines-with-c-stubs-fix
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 28 Sep 2012 00:18:52 +0000 (10:18 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 3 Oct 2012 06:46:37 +0000 (16:46 +1000)
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/audit.h

index 25ea7218f7b2a138b9dd6328fd38a4830b11c43d..30e9beaf0cc1db3d48453b694ed71c0f2e49393c 100644 (file)
@@ -530,7 +530,7 @@ extern int auditsc_get_stamp(struct audit_context *ctx,
                              struct timespec *t, unsigned int *serial);
 extern int audit_set_loginuid(kuid_t loginuid);
 
-static inline int audit_get_loginuid(struct task_struct *tsk)
+static inline kuid_t audit_get_loginuid(struct task_struct *tsk)
 {
        return tsk->loginuid;
 }
@@ -677,7 +677,7 @@ static inline int auditsc_get_stamp(struct audit_context *ctx,
 {
        return 0;
 }
-static inline int audit_get_loginuid(struct task_struct *tsk)
+static inline kuid_t audit_get_loginuid(struct task_struct *tsk)
 {
        return INVALID_UID;
 }