Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions include/omicron/policy.h
Original file line number Diff line number Diff line change
@@ -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 <stdbool.h>
#include <stddef.h>
#include <sys/resource.h>

#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 */
Expand All @@ -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 */
2 changes: 1 addition & 1 deletion include/omicron/pty.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
void om_pty_kill(om_pty *t);
8 changes: 1 addition & 7 deletions include/omicron/sandbox.h
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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 */
Loading