Remove unused init + cleanup hooks in selinux and systemd inhibit plugins
- We should perhaps require an init hook instead of foo_hooks struct but while things are this way... these are useless.
This commit is contained in:
parent
be7b886607
commit
08b7daccee
|
@ -51,16 +51,6 @@ static rpmRC sehandle_init(int open_status)
|
|||
return (sehandle != NULL) ? RPMRC_OK : RPMRC_FAIL;
|
||||
}
|
||||
|
||||
static rpmRC PLUGINHOOK_INIT_FUNC(rpmts ts, const char *name, const char *opts)
|
||||
{
|
||||
return RPMRC_OK;
|
||||
}
|
||||
|
||||
static rpmRC PLUGINHOOK_CLEANUP_FUNC(void)
|
||||
{
|
||||
return RPMRC_OK;
|
||||
}
|
||||
|
||||
static rpmRC PLUGINHOOK_TSM_PRE_FUNC(rpmts ts)
|
||||
{
|
||||
rpmRC rc = RPMRC_OK;
|
||||
|
@ -177,8 +167,6 @@ static rpmRC PLUGINHOOK_FSM_FILE_PREPARE_FUNC(const char *path, const char *dest
|
|||
}
|
||||
|
||||
struct rpmPluginHooks_s selinux_hooks = {
|
||||
.init = PLUGINHOOK_INIT_FUNC,
|
||||
.cleanup = PLUGINHOOK_CLEANUP_FUNC,
|
||||
.tsm_pre = PLUGINHOOK_TSM_PRE_FUNC,
|
||||
.tsm_post = PLUGINHOOK_TSM_POST_FUNC,
|
||||
.psm_pre = PLUGINHOOK_PSM_PRE_FUNC,
|
||||
|
|
|
@ -5,16 +5,6 @@
|
|||
|
||||
static int lock_fd = -1;
|
||||
|
||||
static rpmRC PLUGINHOOK_INIT_FUNC(rpmts ts, const char *name, const char *opts)
|
||||
{
|
||||
return RPMRC_OK;
|
||||
}
|
||||
|
||||
static rpmRC PLUGINHOOK_CLEANUP_FUNC(void)
|
||||
{
|
||||
return RPMRC_OK;
|
||||
}
|
||||
|
||||
static int inhibit(void)
|
||||
{
|
||||
DBusError err;
|
||||
|
@ -93,8 +83,6 @@ static rpmRC PLUGINHOOK_TSM_POST_FUNC(rpmts ts, int res)
|
|||
}
|
||||
|
||||
struct rpmPluginHooks_s systemd_inhibit_hooks = {
|
||||
.init = PLUGINHOOK_INIT_FUNC,
|
||||
.cleanup = PLUGINHOOK_CLEANUP_FUNC,
|
||||
.tsm_pre = PLUGINHOOK_TSM_PRE_FUNC,
|
||||
.tsm_post = PLUGINHOOK_TSM_POST_FUNC,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue