From: Glauber de Oliveira Costa <glommer@br.ibm.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: Selinux@tycho.nsa.gov
Subject: Re: [PATCH] add version option to newrole
Date: Wed, 8 Feb 2006 11:25:28 -0200 [thread overview]
Message-ID: <200602081125.28369.glommer@br.ibm.com> (raw)
In-Reply-To: <1139402637.2872.90.camel@moss-spartans.epoch.ncsc.mil>
Em Quarta 08 Fevereiro 2006 10:43, Stephen Smalley escreveu:
> On Wed, 2006-02-08 at 09:34 -0200, Glauber de Oliveira Costa wrote:
> > When trying to isolate a problem today, I missed a lot an version option
> > (-v or such). This simple patch adds such an option.
> >
> > If it's of interest, such an option may be added to whole policycoreutils
> > package. (IMHO, it would be useful). With this possibility in mind, I
> > decided to implement the version string in a separate version.h file,
> > that could be included by other packages too.
> >
> > Patch follows.
>
> If we were going to do this, I'd auto-generate version.h from the
> already existing VERSION file, or just have the Makefile add -DVERSION=
> with the contents of the already existing VERSION file. Otherwise, we
> have to update both files. And this would only tell you the upstream
> base version, not the complete package version. Why not just run rpm -q
> -f /usr/bin/newrole? And rpm -V -f /usr/bin/newrole to check that it is
> unmodified from the package-provided version.
Thank you for your comments Stephen,
Agreed, auto-generating it from VERSION file would be my choice. I'll rewrite
it this way. About running rpm --whatever, this does not work in all
environments. Debian based distributions does not have this options (although
they have their own dpkg versions of it), and there are always the scenario
in which one may be experimenting with installations directly from source, in
which package managers are not involved at all. After all, version options
are quite common in programs in general.
glauber.
--
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.
next prev parent reply other threads:[~2006-02-08 13:25 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-08 11:34 [PATCH] add version option to newrole Glauber de Oliveira Costa
2006-02-08 12:43 ` Stephen Smalley
2006-02-08 13:25 ` Glauber de Oliveira Costa [this message]
2006-02-08 13:06 ` Steve G
2006-02-08 13:32 ` Glauber de Oliveira Costa
-- strict thread matches above, loose matches on Subject: below --
2006-02-08 16:45 [PATCH] Add " Glauber de Oliveira Costa
2006-02-08 16:54 ` Stephen Smalley
2006-02-08 17:10 ` Steve G
2006-02-08 17:16 ` Glauber de Oliveira Costa
2006-02-09 20:09 ` Stephen Smalley
2006-02-09 20:12 ` Stephen Smalley
2006-02-10 13:51 ` Glauber de Oliveira Costa
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=200602081125.28369.glommer@br.ibm.com \
--to=glommer@br.ibm.com \
--cc=Selinux@tycho.nsa.gov \
--cc=sds@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.