+++ /dev/null
-/*
- * This file is part of libsmack. Derived from libselinux/src/dso.h.
- *
- * Copyright (C) 2012 Intel Corporation
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * version 2.1 as published by the Free Software Foundation.
- *
- * This library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA
- *
- * Authors:
- * Passion Zhao <passion.zhao@intel.com>
- */
-
-#ifndef _SMACK_DSO_H
-#define _SMACK_DSO_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef SHARED
-# define hidden __attribute__ ((visibility ("hidden")))
-# define hidden_proto(fct) __hidden_proto (fct, fct##_internal)
-# define __hidden_proto(fct, internal) \
- extern __typeof (fct) internal; \
- extern __typeof (fct) fct __asm (#internal) hidden;
-# if defined(__alpha__) || defined(__mips__)
-# define hidden_def(fct) \
- asm (".globl " #fct "\n" #fct " = " #fct "_internal");
-# else
-# define hidden_def(fct) \
- asm (".globl " #fct "\n.set " #fct ", " #fct "_internal");
-#endif
-#else
-# define hidden
-# define hidden_proto(fct)
-# define hidden_def(fct)
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
#include <stdint.h>
#include <limits.h>
-#include "dso.h"
-
/*
* * smackfs magic number
* */
smack_mnt = strdup(mnt);
}
-hidden_def(set_smackmnt)
-
-
/* Verify the mount point for smack file system has a smackfs.
* If the file system:
* Exist,
return exists;
}
-hidden_def(smackfs_exists)
-
static void init_smackmnt(void)
{
char *buf=NULL, *p;
smack_mnt = NULL;
}
-hidden_def(fini_smackmnt)
-
static void init_lib(void) __attribute__ ((constructor));
static void init_lib(void)
{