All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ivan Gyurdiev <ivg2@cornell.edu>
To: Joshua Brindle <jbrindle@tresys.com>
Cc: Daniel J Walsh <dwalsh@redhat.com>,
	Stephen Smalley <sds@tycho.nsa.gov>,
	SELinux-dev@tresys.com, selinux@tycho.nsa.gov
Subject: Re: [ SEMANAGE ] Stub pserver backend
Date: Tue, 15 Nov 2005 11:42:22 -0500	[thread overview]
Message-ID: <437A0FEE.5030105@cornell.edu> (raw)
In-Reply-To: <437A09A4.4060103@tresys.com>

J
> There is no race condition on reads. Every query returns the 
> transaction number and the client should check the transaction numbers 
> for consistency.
Ah... so that's what commit_num is for...

Well, I haven't been using that in the other interfaces, so unless 
you've added it with the swig patch, there are no transaction numbers 
for objects other than modules - those functions all return STATUS_ERR 
or STATUS_SUCCESS.

Relying on transaction numbers seems uglier than using a transaction - 
do you want the client to keep re-running the queries until they match?
> The policy rebuild is an implementation issue, as little or as much of 
> the cache can be filled at any time, and the transaction number can 
> always be polled to ensure its up to date.
That's a good point - I didn't realize there was a transaction number, 
so taking that into account should allow more optimizations.

> That said, genhomedircon may be placed inside the transaction at some 
> point in the future when the whole policy directory is inside the 
> sandbox, but until then there is no need for this, and it causes tons 
> of extra copying of files, filling of unused databases, parsing of 
> policydb and a possible policy rebuild/reload.
Yes, commit() needs more optimizations - the whole rebuild sequence 
should be skipped if there were no changes..


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

  reply	other threads:[~2005-11-15 16:42 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-14 21:55 [ SEMANAGE ] Stub pserver backend Ivan Gyurdiev
2005-11-15 11:29 ` Stephen Smalley
2005-11-15 11:58   ` Stephen Smalley
2005-11-15 13:38     ` Daniel J Walsh
2005-11-15 14:12       ` Stephen Smalley
2005-11-15 14:25         ` Policy mods in last nights refpolicy Daniel J Walsh
2005-11-15 15:52           ` Christopher J. PeBenito
2005-11-16  0:55             ` Daniel J Walsh
2005-11-16 14:38               ` Christopher J. PeBenito
2005-11-16 13:48             ` Stephen Smalley
2005-11-16 14:18               ` Stephen Smalley
2005-11-16 14:46                 ` Joshua Brindle
2005-11-15 14:38         ` [ SEMANAGE ] Stub pserver backend Daniel J Walsh
2005-11-15 16:02           ` Chad Sellers
2005-11-15 16:05       ` Ivan Gyurdiev
2005-11-15 15:59         ` Joshua Brindle
2005-11-15 16:25           ` Ivan Gyurdiev
2005-11-15 16:15             ` Joshua Brindle
2005-11-15 16:42               ` Ivan Gyurdiev [this message]
2005-11-15 16:05         ` Stephen Smalley
2005-11-15 13:47     ` Stephen Smalley
2005-11-15 15:54     ` Ivan Gyurdiev
2005-11-15 15:55       ` Joshua Brindle
2005-11-15 16:30         ` Ivan Gyurdiev
2005-11-16  1:01         ` Daniel J Walsh
2005-11-16  0:58       ` Daniel J Walsh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=437A0FEE.5030105@cornell.edu \
    --to=ivg2@cornell.edu \
    --cc=SELinux-dev@tresys.com \
    --cc=dwalsh@redhat.com \
    --cc=jbrindle@tresys.com \
    --cc=sds@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.