Skip to contentSkip to conversation

Upstreaming shared LSM interfaces

DISCUSSION Casey Schaufler 1 participant 1 message Aug 9, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw
Quoted 53 lines · --- Casey Schaufler

Date: Thu, 9 Aug 2007 11:43:53 -0700 (PDT)
From: Casey Schaufler <[email protected]>
Subject: Re: Upstreaming shared LSM interfaces
To: "David P. Quigley" <[email protected]>,
Stephen Smalley <[email protected]>, James Morris
<[email protected]>,
David Howells <[email protected]>, Casey Schaufler <[email protected]>

Quoted 6 lines · --- "David P. Quigley

Hello Everyone,
Between Casey's Audit patches, the FS-Cache patches and the Labeled NFS
patches there are a bunch of new LSM interfaces being proposed that some combination of us seem to need. I would like to propose that we agree on the interfaces and send them to James to be upstreamed. The interfaces and the proposed prototypes are listed below

I was wrong to propose the hooks that get the secids to feed to the audit system. I had hoped that I could contain the scope of the changes required to the audit system to pull SELinux dependencies out by allowing the continued use of secids in that case. I see now the error in my ways and will shortly proposed an alternative patch set for the deselinixifation of audit.

The secid is an internal SELinux data structure (albeit one with many favorable characteristics) and the LSM interface ought not be exposing it.

Quoted 23 lines

Interfaces:

inode_{get,set}secid: From Labeled NFS patches void (*inode_getsecid)(struct inode *inode, u32 *secid); void (*inode_setsecid)(struct inode *inode, u32 secid);

ipc_getsecid: From Audit patches
void (*ipc_getsecid) (struct kern_ipc_perm *p, u32 *secid);

{get,set}_fscreate_secid: From FS-Cache patches
u32 (*get_fscreate_secid)(void);
u32 (*set_fscreate_secid)(u32 secid);

secctx_to_secid: From Labeled NFS patches
int (*secctx_to_secid)(u32 *secid, char *secdata, u32 seclen);

act_as_{secid,self}: From FS-Cache patches
u32 (*act_as_secid)(u32 secid);
u32 (*act_as_self)(void);

Quoted 11 lines
Quoted 4 lines

Dave Quigley

Casey Schaufler
[email protected]

Casey Schaufler
[email protected]