trace lsm
a strace for LSM tracepoints
Getting started
Running the gadget:
- kubectl gadget
- ig
$ kubectl gadget run ghcr.io/inspektor-gadget/gadget/trace_lsm:v0.34.0 [flags]
$ sudo ig run ghcr.io/inspektor-gadget/gadget/trace_lsm:v0.34.0 [flags]
Flags
--trace-all
trace all LSM tracepoints
Default value: "false"
--trace-binder_set_context_mgr
Trace the binder_set_context_mgr LSM hook
Default value: "false"
--trace-binder_transaction
Trace the binder_transaction LSM hook
Default value: "false"
--trace-binder_transfer_binder
Trace the binder_transfer_binder LSM hook
Default value: "false"
--trace-binder_transfer_file
Trace the binder_transfer_file LSM hook
Default value: "false"
--trace-bprm_check_security
Trace the bprm_check_security LSM hook
Default value: "false"
--trace-bprm_committed_creds
Trace the bprm_committed_creds LSM hook
Default value: "false"
--trace-bprm_committing_creds
Trace the bprm_committing_creds LSM hook
Default value: "false"
--trace-bprm_creds_for_exec
Trace the bprm_creds_for_exec LSM hook
Default value: "false"
--trace-bprm_creds_from_file
Trace the bprm_creds_from_file LSM hook
Default value: "false"
--trace-capable
Trace the capable LSM hook
Default value: "false"
--trace-capget
Trace the capget LSM hook
Default value: "false"
--trace-capset
Trace the capset LSM hook
Default value: "false"
--trace-cred_alloc_blank
Trace the cred_alloc_blank LSM hook
Default value: "false"
--trace-cred_free
Trace the cred_free LSM hook
Default value: "false"
--trace-cred_getsecid
Trace the cred_getsecid LSM hook
Default value: "false"
--trace-cred_prepare
Trace the cred_prepare LSM hook
Default value: "false"
--trace-cred_transfer
Trace the cred_transfer LSM hook
Default value: "false"
--trace-d_instantiate
Trace the d_instantiate LSM hook
Default value: "false"
--trace-dentry_create_files_as
Trace the dentry_create_files_as LSM hook
Default value: "false"
--trace-dentry_init_security
Trace the dentry_init_security LSM hook
Default value: "false"
--trace-file_alloc_security
Trace the file_alloc_security LSM hook
Default value: "false"
--trace-file_fcntl
Trace the file_fcntl LSM hook
Default value: "false"
--trace-file_free_security
Trace the file_free_security LSM hook
Default value: "false"
--trace-file_ioctl
Trace the file_ioctl LSM hook
Default value: "false"
--trace-file_lock
Trace the file_lock LSM hook
Default value: "false"
--trace-file_mprotect
Trace the file_mprotect LSM hook
Default value: "false"
--trace-file_open
Trace the file_open LSM hook
Default value: "false"
--trace-file_permission
Trace the file_permission LSM hook
Default value: "false"
--trace-file_receive
Trace the file_receive LSM hook
Default value: "false"
--trace-file_send_sigiotask
Trace the file_send_sigiotask LSM hook
Default value: "false"
--trace-file_set_fowner
Trace the file_set_fowner LSM hook
Default value: "false"
--trace-fs_context_dup
Trace the fs_context_dup LSM hook
Default value: "false"
--trace-fs_context_parse_param
Trace the fs_context_parse_param LSM hook
Default value: "false"
--trace-getprocattr
Trace the getprocattr LSM hook
Default value: "false"
--trace-inode_alloc_security
Trace the inode_alloc_security LSM hook
Default value: "false"
--trace-inode_copy_up
Trace the inode_copy_up LSM hook
Default value: "false"
--trace-inode_copy_up_xattr
Trace the inode_copy_up_xattr LSM hook
Default value: "false"
--trace-inode_create
Trace the inode_create LSM hook
Default value: "false"
--trace-inode_follow_link
Trace the inode_follow_link LSM hook
Default value: "false"
--trace-inode_free_security
Trace the inode_free_security LSM hook
Default value: "false"
--trace-inode_getattr
Trace the inode_getattr LSM hook
Default value: "false"
--trace-inode_getsecctx
Trace the inode_getsecctx LSM hook
Default value: "false"
--trace-inode_getsecid
Trace the inode_getsecid LSM hook
Default value: "false"
--trace-inode_getsecurity
Trace the inode_getsecurity LSM hook
Default value: "false"
--trace-inode_getxattr
Trace the inode_getxattr LSM hook
Default value: "false"
--trace-inode_init_security
Trace the inode_init_security LSM hook
Default value: "false"
--trace-inode_init_security_anon
Trace the inode_init_security_anon LSM hook
Default value: "false"
--trace-inode_invalidate_secctx
Trace the inode_invalidate_secctx LSM hook
Default value: "false"
--trace-inode_killpriv
Trace the inode_killpriv LSM hook
Default value: "false"
--trace-inode_link
Trace the inode_link LSM hook
Default value: "false"
--trace-inode_listsecurity
Trace the inode_listsecurity LSM hook
Default value: "false"
--trace-inode_listxattr
Trace the inode_listxattr LSM hook
Default value: "false"
--trace-inode_mkdir
Trace the inode_mkdir LSM hook
Default value: "false"
--trace-inode_mknod
Trace the inode_mknod LSM hook
Default value: "false"
--trace-inode_need_killpriv
Trace the inode_need_killpriv LSM hook
Default value: "false"
--trace-inode_notifysecctx
Trace the inode_notifysecctx LSM hook
Default value: "false"
--trace-inode_permission
Trace the inode_permission LSM hook
Default value: "false"
--trace-inode_post_setxattr
Trace the inode_post_setxattr LSM hook
Default value: "false"
--trace-inode_readlink
Trace the inode_readlink LSM hook
Default value: "false"
--trace-inode_removexattr
Trace the inode_removexattr LSM hook
Default value: "false"
--trace-inode_rename
Trace the inode_rename LSM hook
Default value: "false"
--trace-inode_rmdir
Trace the inode_rmdir LSM hook
Default value: "false"
--trace-inode_setattr
Trace the inode_setattr LSM hook
Default value: "false"
--trace-inode_setsecctx
Trace the inode_setsecctx LSM hook
Default value: "false"
--trace-inode_setsecurity
Trace the inode_setsecurity LSM hook
Default value: "false"
--trace-inode_setxattr
Trace the inode_setxattr LSM hook
Default value: "false"
--trace-inode_symlink
Trace the inode_symlink LSM hook
Default value: "false"
--trace-inode_unlink
Trace the inode_unlink LSM hook
Default value: "false"