upgrade to linux 2.6.10-1.12_FC2
[linux-2.6.git] / security / dummy.c
index 25b70b0..628de35 100644 (file)
@@ -104,6 +104,13 @@ static int dummy_syslog (int type)
        return 0;
 }
 
+static int dummy_settime(struct timespec *ts, struct timezone *tz)
+{
+       if (!capable(CAP_SYS_TIME))
+               return -EPERM;
+       return 0;
+}
+
 /*
  * Check that a process has enough memory to allocate a new virtual
  * mapping. 0 means there is enough memory for the allocation to
@@ -896,6 +903,7 @@ void security_fixup_ops (struct security_operations *ops)
        set_to_dummy_if_null(ops, quota_on);
        set_to_dummy_if_null(ops, sysctl);
        set_to_dummy_if_null(ops, syslog);
+       set_to_dummy_if_null(ops, settime);
        set_to_dummy_if_null(ops, vm_enough_memory);
        set_to_dummy_if_null(ops, bprm_alloc_security);
        set_to_dummy_if_null(ops, bprm_free_security);