top | item 39879325

Xz.git: Fix Linux Landlock Feature Test in Autotools

29 points| jamespwilliams | 1 year ago |git.tukaani.org

6 comments

order

michelangelo|1 year ago

This is just spectacular. Evil, of course, but spectacular nevertheless.

  +        #include <sys/prctl.h>
  +. <<<<<<<<<<<<<<<<<<<<<<<< THIS IS IT
  +        void my_sandbox(void)
  +        {
  +

fargle|1 year ago

why bother with a . instead of a &nbsp or some other unicode hackdodgery?

jamespwilliams|1 year ago

Can you spot the intentional bug in this commit?

JSDevOps|1 year ago

It was checking if the C compiled to detect the landlock feature, and there was a single character in the middle of the code that made it always fail to compile and therefore silently leave the feature disabled.