diff options
Diffstat (limited to 'src/msntab.c')
-rw-r--r-- | src/msntab.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/msntab.c b/src/msntab.c new file mode 100644 index 0000000..bcd3030 --- /dev/null +++ b/src/msntab.c @@ -0,0 +1,23 @@ +#include <stddef.h> +#include <assert.h> +#include "msntab.h" + +struct tabentry* msntab_check_call(const char *callee, const char *caller) { + static char *args[] = { "/bin/cat", NULL }; + static struct tabentry ca = { CALL_ACTION_ACCEPT, 1, args }; + + return msntab_ref(&ca); +} + + +struct tabentry* msntab_ref(struct tabentry *t) { + assert(t && t->ref_counter >= 1); + t->ref_counter++; + return t; +} + +void msntab_unref(struct tabentry *t) { + assert(t && t->ref_counter >= 1); + t->ref_counter--; +} + |