Skip to content

Commit ee0e86c

Browse files
robnbehlendorf
authored andcommitted
libzpool: remove unused userspace ioctl policy functions
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes #17861
1 parent b5af61b commit ee0e86c

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

include/sys/zfs_context.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,6 @@ struct bootstat {
228228
uint64_t st_size;
229229
};
230230

231-
extern int zfs_secpolicy_snapshot_perms(const char *name, cred_t *cr);
232-
extern int zfs_secpolicy_rename_perms(const char *from, const char *to,
233-
cred_t *cr);
234-
extern int zfs_secpolicy_destroy_perms(const char *name, cred_t *cr);
235-
extern int secpolicy_zfs(const cred_t *cr);
236-
237231
#define DDI_SLEEP KM_SLEEP
238232
#define ddi_log_sysevent(_a, _b, _c, _d, _e, _f, _g) \
239233
sysevent_post_event(_c, _d, _b, "libzpool", _e, _f)

lib/libzpool/kernel.c

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -482,34 +482,6 @@ kernel_fini(void)
482482
libspl_fini();
483483
}
484484

485-
int
486-
zfs_secpolicy_snapshot_perms(const char *name, cred_t *cr)
487-
{
488-
(void) name, (void) cr;
489-
return (0);
490-
}
491-
492-
int
493-
zfs_secpolicy_rename_perms(const char *from, const char *to, cred_t *cr)
494-
{
495-
(void) from, (void) to, (void) cr;
496-
return (0);
497-
}
498-
499-
int
500-
zfs_secpolicy_destroy_perms(const char *name, cred_t *cr)
501-
{
502-
(void) name, (void) cr;
503-
return (0);
504-
}
505-
506-
int
507-
secpolicy_zfs(const cred_t *cr)
508-
{
509-
(void) cr;
510-
return (0);
511-
}
512-
513485
zfs_file_t *
514486
zfs_onexit_fd_hold(int fd, minor_t *minorp)
515487
{

0 commit comments

Comments
 (0)