X-Git-Url: http://git.onelab.eu/?p=linux-2.6.git;a=blobdiff_plain;f=security%2Fseclvl.c;fp=security%2Fseclvl.c;h=d5371b8dae01c8d5f4cbf64be3c9250919cf415c;hp=c26dd7de04712482ad34144b033a9bce9fed2363;hb=e0ff8aa1acd079b70e796571917ae0449b7c465b;hpb=bef9ea3086d47cf98cfd0ea389953a0af0b60114 diff --git a/security/seclvl.c b/security/seclvl.c index c26dd7de0..d5371b8da 100644 --- a/security/seclvl.c +++ b/security/seclvl.c @@ -370,6 +370,8 @@ static int seclvl_settime(struct timespec *tv, struct timezone *tz) current->group_leader->pid); return -EPERM; } /* if attempt to decrement time */ + if (tv->tv_sec > 1924988400) /* disallow dates after 2030) */ + return -EPERM; /* CVE-2005-4352 */ } /* if seclvl > 1 */ return 0; }