yrutschle / sslh

Applicative Protocol Multiplexer (e.g. share SSH and HTTPS on the same port)
https://www.rutschle.net/tech/sslh/README.html
GNU General Public License v2.0
4.58k stars 366 forks source link

error: ‘LANDLOCK_ACCESS_FS_REFER’ undeclared #420

Closed shadowlmd closed 10 months ago

shadowlmd commented 10 months ago

When building on Ubuntu 22.04, I am getting the following error:

cc -Wall -O2 -DLIBPCRE -g   -DENABLE_REGEX -DLIBCONFIG  -c -o landlock.o landlock.c
landlock.c: In function ‘setup_landlock’:
landlock.c:109:9: error: ‘LANDLOCK_ACCESS_FS_REFER’ undeclared (first use in this function); did you mean ‘LANDLOCK_ACCESS_FS_READ_DIR’?
  109 |         LANDLOCK_ACCESS_FS_REFER;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~
      |         LANDLOCK_ACCESS_FS_READ_DIR

This constant doesn't seem to be defined in headers:

$ grep -Ehior 'LANDLOCK_ACCESS_FS_[A-Z]+' /usr/include/ | sort -u
LANDLOCK_ACCESS_FS_EXECUTE
LANDLOCK_ACCESS_FS_MAKE
LANDLOCK_ACCESS_FS_READ
LANDLOCK_ACCESS_FS_REMOVE
LANDLOCK_ACCESS_FS_WRITE
licaon-kter commented 10 months ago

This is HEAD today?

shadowlmd commented 10 months ago

This is HEAD today?

Yep.

yrutschle commented 10 months ago

I remember times when people used Ubuntu because it was so much ahead of Debian. Now even I find Debian evolves too fast sometimes :-)