1
0
mirror of https://git.code.sf.net/p/linux-ima/ima-evm-utils synced 2025-04-28 14:43:37 +02:00

Export find() declaration for the following patches

Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
This commit is contained in:
Dmitry Kasatkin 2014-01-16 15:11:41 +02:00
parent 6c0ebe2be6
commit eda8a164e0

View File

@ -264,6 +264,16 @@ static int x509;
static int user_sig_type; static int user_sig_type;
static char *keyfile; static char *keyfile;
static char *de_type; static char *de_type;
static dev_t fs_dev;
typedef int (*find_cb_t)(const char *path);
static int find(const char *path, int dts, find_cb_t func);
#define REG_MASK (1 << DT_REG)
#define DIR_MASK (1 << DT_DIR)
#define LNK_MASK (1 << DT_LNK)
#define CHR_MASK (1 << DT_CHR)
#define BLK_MASK (1 << DT_BLK)
typedef int (*sign_hash_fn_t)(const char *algo, const unsigned char *hash, int size, const char *keyfile, unsigned char *sig); typedef int (*sign_hash_fn_t)(const char *algo, const unsigned char *hash, int size, const char *keyfile, unsigned char *sig);
@ -1585,8 +1595,6 @@ static int cmd_hmac_evm(struct command *cmd)
return hmac_evm(file, "/etc/keys/evm-key-plain"); return hmac_evm(file, "/etc/keys/evm-key-plain");
} }
typedef int (*find_cb_t)(const char *path);
static int ima_fix(const char *path) static int ima_fix(const char *path)
{ {
int fd, size, len, ima = 0, evm = 0; int fd, size, len, ima = 0, evm = 0;
@ -1625,14 +1633,6 @@ static int ima_fix(const char *path)
return 0; return 0;
} }
#define REG_MASK (1 << DT_REG)
#define DIR_MASK (1 << DT_DIR)
#define LNK_MASK (1 << DT_LNK)
#define CHR_MASK (1 << DT_CHR)
#define BLK_MASK (1 << DT_BLK)
static dev_t fs_dev;
static int find(const char *path, int dts, find_cb_t func) static int find(const char *path, int dts, find_cb_t func)
{ {
struct dirent *de; struct dirent *de;