]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/seccomp-util: move stime() to @obsolete
authorTopi Miettinen <toiwoton@gmail.com>
Mon, 2 Nov 2020 11:10:24 +0000 (13:10 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 4 Nov 2020 08:48:33 +0000 (09:48 +0100)
Quoting the manual page of stime(2): "Starting with glibc 2.31, this function
is no longer available to newly linked applications and is no longer declared
in <time.h>."

src/shared/seccomp-util.c

index 4a541111f96fab5950a18ff254c2653964d5226f..847592429703ebc07d752178fba41323c63aebb1 100644 (file)
@@ -383,7 +383,6 @@ const SyscallFilterSet syscall_filter_sets[_SYSCALL_FILTER_SET_MAX] = {
                 "clock_settime\0"
                 "clock_settime64\0"
                 "settimeofday\0"
-                "stime\0"
         },
         [SYSCALL_FILTER_SET_CPU_EMULATION] = {
                 .name = "@cpu-emulation",
@@ -639,6 +638,7 @@ const SyscallFilterSet syscall_filter_sets[_SYSCALL_FILTER_SET_MAX] = {
                 "security\0"
                 "sgetmask\0"
                 "ssetmask\0"
+                "stime\0"
                 "stty\0"
                 "sysfs\0"
                 "tuxcall\0"