WIP/fixbpf #13

Κλειστά
crtxcr θέλει να συγχωνεύσει 0 υποβολές από WIP/fixbpf σε master
Ιδιοκτήτης

TODO:

  • EACCES is hardcoded
  • Shrink BPF filter.
TODO: - EACCES is hardcoded - Shrink BPF filter.
crtxcr πρόσθεσε 3 υποβολές 2021-08-12 12:31:00 +02:00
We generally want to kill the process not the thread.
The filter was missing this check for arch, allowing bypasses
by using different calling conventions of other architectures.

A trivial example is execve() of x86 from and x86_64 process.
The arch field is the same for x86_64 and x32, thus checking it
is not enough.

Simply using x32 system calls would allow a bypass. Thus,
we must check whether the system call number is in __X32_SYSCALL_BIT.

This is of course a lazy solution, we could also add the
same system call number + _X32_SYSCALL_BIT to our black/whitelists.

For now however, this however will do.
crtxcr force-pushed WIP/fixbpf από το 89c5496fab στο 83487c1699 2021-09-05 12:32:25 +02:00 Σύγκριση
crtxcr force-pushed WIP/fixbpf από το 91a9b778eb στο 8a9b1730de 2021-09-05 17:14:14 +02:00 Σύγκριση
crtxcr πρόσθεσε 1 υποβολή 2021-09-05 17:24:46 +02:00
crtxcr πρόσθεσε 1 υποβολή 2021-09-06 21:53:45 +02:00
crtxcr έκλεισε αυτό το pull request 2021-09-06 21:58:06 +02:00

Το pull request έκλεισε

Συνδεθείτε για να συμμετάσχετε σε αυτή τη συνομιλία.
Δεν υπάρχουν εξεταστές
Χωρίς Ορόσημο
Χωρίς Αποδέκτη
1 Συμμετέχοντες
Ειδοποιήσεις
Ημερομηνία Παράδοσης
Η ημερομηνία παράδοσης δεν είναι έγκυρη ή εκτός εύρους. Παρακαλούμε χρησιμοποιήστε τη μορφή 'εεεε-μμ-ηη'.

Δεν ορίστηκε ημερομηνία παράδοσης.

Εξαρτήσεις

Δεν έχουν οριστεί εξαρτήσεις.

Αναφορά: crtxcr/exile.h#13
Δεν υπάρχει περιγραφή.