seccomp filter: Handle openat as well

Authored by fvogt on Sep 13 2017, 5:31 PM.

Description

seccomp filter: Handle openat as well

Summary:
With glibc 2.26, the open syscall is not used anymore as openat is favored.
This causes the testcase to fail, which shows that openat is not handled
correctly by the seccomp filter.
This adds a testcase that tests both open and openat (needs to use direct
syscalls on glibc 2.26 as calls to open would otherwise result in openat)
and implements the proper handling for openat in the filter.

BUG: 384651

Test Plan:
Ran seccomp test before and after, now succeeds.
Ran make install, screenlocker still works.

Reviewers: Plasma, graesslin

Reviewed By: Plasma, graesslin

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D7806

Details

Committed
fvogtSep 13 2017, 6:27 PM
Reviewer
Plasma
Differential Revision
D7806: seccomp filter: Handle openat as well
Parents
R133:a18ebe92f90d: Merge branch 'Plasma/5.10'
Branches
Unknown
Tags
Unknown