search for: xa_cnt

Displaying 2 results from an estimated 2 matches for "xa_cnt".

Did you mean: tx_cnt
2023 Mar 24
1
[PATCH v8 4/6] security: Allow all LSMs to provide xattrs for inode_init_security hook
...individual LSMs which is incremented based on how many xattrs are created by the individual LSMs. Here is some *very* rough pseudo code: int security_inode_init_security(...) { /* allocate an xattr array */ xattrs = kcalloc(blob_sizes, sizeof(*xattrs), GFP_BLAH); /* loop on the lsms */ xa_cnt = 0; while (lsm_hooks) { rc = call_hook(lsm_hook, &xattrs[xa_cnt]); if (rc > 0) xa_cnt += rc; } /* evm magic */ evm_inode_init_security(...) } Does that work? Am I missing something? -- paul-moore.com
2023 Mar 27
1
[PATCH v8 4/6] security: Allow all LSMs to provide xattrs for inode_init_security hook
...many xattrs are created by the > individual LSMs. Here is some *very* rough pseudo code: > > int security_inode_init_security(...) > { > > /* allocate an xattr array */ > xattrs = kcalloc(blob_sizes, sizeof(*xattrs), GFP_BLAH); > > /* loop on the lsms */ > xa_cnt = 0; > while (lsm_hooks) { > rc = call_hook(lsm_hook, &xattrs[xa_cnt]); > if (rc > 0) > xa_cnt += rc; > } > > /* evm magic */ > evm_inode_init_security(...) > } > > Does that work? Am I missing something? Oh, unfortunately not. EVM n...