diff options
author | Ingo Molnar <mingo@elte.hu> | 2011-03-18 05:38:53 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-03-18 05:39:00 -0400 |
commit | 8dd8997d2c56c9f248294805e129e1fc69444380 (patch) | |
tree | 3b030a04295fc031db98746c4074c2df1ed6a19f /security | |
parent | 1eda75c131ea42ec173323b6c34aeed78ae637c1 (diff) | |
parent | 016aa2ed1cc9cf704cf76d8df07751b6daa9750f (diff) |
Merge branch 'linus' into x86/urgent
Merge reason: Merge upstream commits to avoid conflicts in upcoming patches.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'security')
-rw-r--r-- | security/commoncap.c | 2 | ||||
-rw-r--r-- | security/security.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/security/commoncap.c b/security/commoncap.c index 64c2ed9c901..dbfdaed4cc6 100644 --- a/security/commoncap.c +++ b/security/commoncap.c | |||
@@ -93,7 +93,7 @@ int cap_capable(struct task_struct *tsk, const struct cred *cred, int cap, | |||
93 | * Determine whether the current process may set the system clock and timezone | 93 | * Determine whether the current process may set the system clock and timezone |
94 | * information, returning 0 if permission granted, -ve if denied. | 94 | * information, returning 0 if permission granted, -ve if denied. |
95 | */ | 95 | */ |
96 | int cap_settime(struct timespec *ts, struct timezone *tz) | 96 | int cap_settime(const struct timespec *ts, const struct timezone *tz) |
97 | { | 97 | { |
98 | if (!capable(CAP_SYS_TIME)) | 98 | if (!capable(CAP_SYS_TIME)) |
99 | return -EPERM; | 99 | return -EPERM; |
diff --git a/security/security.c b/security/security.c index 7b7308ace8c..bb33ecadcf9 100644 --- a/security/security.c +++ b/security/security.c | |||
@@ -201,7 +201,7 @@ int security_syslog(int type) | |||
201 | return security_ops->syslog(type); | 201 | return security_ops->syslog(type); |
202 | } | 202 | } |
203 | 203 | ||
204 | int security_settime(struct timespec *ts, struct timezone *tz) | 204 | int security_settime(const struct timespec *ts, const struct timezone *tz) |
205 | { | 205 | { |
206 | return security_ops->settime(ts, tz); | 206 | return security_ops->settime(ts, tz); |
207 | } | 207 | } |