bunpen: lift main
up to the toplevel
it seems modules *do* support freestanding hare files at the toplevel -- but only if theres just one of them (?)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
all: bunpen
|
||||
|
||||
bunpen:
|
||||
hare build -o $@ main/
|
||||
hare build -o $@
|
||||
|
||||
install:
|
||||
mkdir -p $(PREFIX)/bin
|
||||
|
@@ -1,5 +1,6 @@
|
||||
// vim: set shiftwidth=2 :
|
||||
use log;
|
||||
use methods;
|
||||
use rtext;
|
||||
use strings;
|
||||
use os;
|
||||
@@ -18,6 +19,6 @@ export fn main() void = {
|
||||
let my_name = os::args[0];
|
||||
let exec_line = os::args[1..];
|
||||
rtext::no_new_privs();
|
||||
landlock_restrict();
|
||||
methods::landlock_restrict();
|
||||
do_exec(exec_line);
|
||||
};
|
@@ -27,7 +27,7 @@ fn access_fs_roughly_write() u64 = return
|
||||
|
||||
fn access_fs_roughly_rw() u64 = return access_fs_roughly_read() | access_fs_roughly_write();
|
||||
|
||||
fn landlock_restrict() void = {
|
||||
export fn landlock_restrict() void = {
|
||||
let abi = rtext::landlock_create_ruleset(null, rtext::LANDLOCK_CREATE_RULESET_VERSION)!;
|
||||
log::printfln("found landlock version {}", abi);
|
||||
|
Reference in New Issue
Block a user