diff --git a/include/omicron/policy.h b/include/omicron/policy.h index e1276f6..873a4b4 100644 --- a/include/omicron/policy.h +++ b/include/omicron/policy.h @@ -1,17 +1,13 @@ /* Política del sandbox: describe qué se le permite al proceso aislado. * Son datos puros. No llama al kernel ni protege nada por sí sola: * la traducen sandbox_darwin.c (Seatbelt) y sandbox_linux.c (Landlock). */ -#ifndef OMICRON_POLICY_H -#define OMICRON_POLICY_H +#pragma once #include #include #include -#ifndef OM_POLICY_FWD -#define OM_POLICY_FWD typedef struct om_policy om_policy; -#endif struct om_policy { char **ro_paths; /* rutas de solo lectura */ @@ -37,5 +33,3 @@ int om_policy_parse_args(om_policy *p, int argc, char **argv, int *cmd_index); int om_policy_validate(om_policy *p); void om_policy_free(om_policy *p); - -#endif /* OMICRON_POLICY_H */ diff --git a/include/omicron/pty.h b/include/omicron/pty.h index 63e254d..008b929 100644 --- a/include/omicron/pty.h +++ b/include/omicron/pty.h @@ -22,4 +22,4 @@ int om_pty_pump(om_pty *t); int om_pty_resize(om_pty *t, unsigned rows, unsigned cols); int om_pty_wait(om_pty *t, int *status); -void om_pty_kill(om_pty *t); \ No newline at end of file +void om_pty_kill(om_pty *t); diff --git a/include/omicron/sandbox.h b/include/omicron/sandbox.h index 2a325d5..c3599d5 100644 --- a/include/omicron/sandbox.h +++ b/include/omicron/sandbox.h @@ -1,12 +1,8 @@ /* Frontera de seguridad. Una firma, dos implementaciones (darwin / linux). * Nada fuera de estos tres símbolos sabe qué mecanismo de kernel se usa. */ -#ifndef OMICRON_SANDBOX_H -#define OMICRON_SANDBOX_H +#pragma once -#ifndef OM_POLICY_FWD -#define OM_POLICY_FWD typedef struct om_policy om_policy; -#endif /* Opaco: cada plataforma define su propio contenido en su .c */ typedef struct om_sandbox om_sandbox; @@ -19,5 +15,3 @@ om_sandbox *om_sandbox_prepare(const om_policy *p); int om_sandbox_apply(const om_sandbox *s); void om_sandbox_free(om_sandbox *s); - -#endif /* OMICRON_SANDBOX_H */