aboutsummaryrefslogtreecommitdiffstats
path: root/security/commoncap.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/commoncap.c')
-rw-r--r--security/commoncap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/commoncap.c b/security/commoncap.c
index a83e607d91c3..49c57fd60aea 100644
--- a/security/commoncap.c
+++ b/security/commoncap.c
@@ -92,7 +92,7 @@ int cap_capable(struct task_struct *tsk, const struct cred *cred, int cap,
92 * Determine whether the current process may set the system clock and timezone 92 * Determine whether the current process may set the system clock and timezone
93 * information, returning 0 if permission granted, -ve if denied. 93 * information, returning 0 if permission granted, -ve if denied.
94 */ 94 */
95int cap_settime(struct timespec *ts, struct timezone *tz) 95int cap_settime(const struct timespec *ts, const struct timezone *tz)
96{ 96{
97 if (!capable(CAP_SYS_TIME)) 97 if (!capable(CAP_SYS_TIME))
98 return -EPERM; 98 return -EPERM;