Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b648a809 authored by Paul Lawrence's avatar Paul Lawrence Committed by android-build-merger
Browse files

Merge "Expand seccomp whitelist" am: 301e7e2c am: 32941724 am: 32ad0ad1

am: 8840e75f

Change-Id: I7e50d157c7d2e5d5f030b6e94bb794a94bd05ead
parents 809002f0 8840e75f
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -223,6 +223,14 @@ bool set_seccomp_filter() {
    AllowSyscall(f, 33);  // __NR_access
    AllowSyscall(f, 195); // __NR_stat64

    // b/34813887
    AllowSyscall(f, 5);   // __NR_open
    AllowSyscall(f, 141); // __NR_getdents
    AllowSyscall(f, 217); // __NR_getdents64

    // b/34719286
    AllowSyscall(f, 351); // __NR_eventfd

    // arm32-on-arm64 only filter - autogenerated from bionic syscall usage
    for (size_t i = 0; i < arm_filter_size; ++i)
        f.push_back(arm_filter[i]);