lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <959629.46851.qm@web36606.mail.mud.yahoo.com>
Date:	Mon, 13 Aug 2007 09:58:08 -0700 (PDT)
From:	Casey Schaufler <casey@...aufler-ca.com>
To:	David Howells <dhowells@...hat.com>, casey@...aufler-ca.com
Cc:	dhowells@...hat.com, Stephen Smalley <sds@...ho.nsa.gov>,
	torvalds@...l.org, akpm@...l.org, steved@...hat.com,
	trond.myklebust@....uio.no, linux-fsdevel@...r.kernel.org,
	linux-cachefs@...hat.com, nfsv4@...ux-nfs.org,
	linux-kernel@...r.kernel.org, selinux@...ho.nsa.gov,
	LSM List <linux-security-module@...r.kernel.org>
Subject: Re: [PATCH 00/16] Permit filesystem local caching [try #3]


--- David Howells <dhowells@...hat.com> wrote:

> Casey Schaufler <casey@...aufler-ca.com> wrote:
> 
> > >   (1) int security_get_context(void **_context);
> > > 
> > > 	This allocates and gives the caller a blob that describes the current
> > > 	context of all the LSM module states attached to the current task and
> > > 	stores a pointer to it in *_context.
> > 
> > Is this intended to be anything more than a copy of current->security?
> 
> It has to be sufficient to fully effect security_push().

Which is why it requires an LSM interface. Just checking.

> > I assume that you're talking about the LSM specific data changing,
> > not the LSM itself.
> 
> Yes.
> 
> > If you change the task->security information you are definitly going
> > to change what other tasks can do to the calling task.
> 
> I dealt with that in my current act-as patch.  Under SELinux a task has two
> primary labels.  One with which it is labelled and is used to govern effects
> upon it, and one that is used to act upon things and follows changes to the
> former.

The specification of your push interface that the push operation
not affect how others access the process is OK for SELinux, but
not for any other MAC scheme that I've dealt with, and I think
that's most of them. Nuts. Smack, for example, uses exactly one
label on the process for all purposes.

Are you concerned about accesses other than signals? Signals
could be staitforward to deal with in a pushed situation, but
I'd hesitate to say that the solution would generalize without
additional thought.

> > >   (5) int security_xfrm_to_kernel_context(void *from, void **_to);
> > 
> > Woof. What are you transforming from? 
> 
> In CacheFiles case, the cachefilesd daemon's security label into the label
> the
> cache driver acts as on behalf of other processes.

I'm not sure I understand what this is doing.


Casey Schaufler
casey@...aufler-ca.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ