mirror of
https://github.com/SELinuxProject/selinux
synced 2025-02-09 06:07:28 +00:00
policycoreutils: setfiles: make the restore function exclude() non-static
Stuff wants to use it later. Make it non-static. Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
17c577ace7
commit
66564a67cf
@ -32,7 +32,6 @@ struct edir {
|
||||
|
||||
|
||||
static file_spec_t *fl_head;
|
||||
static int exclude(const char *file);
|
||||
static int filespec_add(ino_t ino, const security_context_t con, const char *file);
|
||||
static int only_changed_user(const char *a, const char *b);
|
||||
struct restore_opts *r_opts = NULL;
|
||||
@ -439,7 +438,7 @@ int process_one_realpath(char *name, int recurse)
|
||||
}
|
||||
}
|
||||
|
||||
static int exclude(const char *file)
|
||||
int exclude(const char *file)
|
||||
{
|
||||
int i = 0;
|
||||
for (i = 0; i < excludeCtr; i++) {
|
||||
|
@ -45,6 +45,7 @@ struct restore_opts {
|
||||
void restore_init(struct restore_opts *opts);
|
||||
void restore_finish();
|
||||
int add_exclude(const char *directory);
|
||||
int exclude(const char *path);
|
||||
void remove_exclude(const char *directory);
|
||||
int process_one_realpath(char *name, int recurse);
|
||||
int process_glob(char *name, int recurse);
|
||||
|
Loading…
Reference in New Issue
Block a user