linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Jeff Schroeder" <jeffschroed@gmail.com>
To: "Jeff Mahoney" <jeffm@suse.com>
Cc: "Jan Engelhardt" <jengelh@medozas.de>,
	"Tim Gardner" <timg@tpi.com>,
	"Chris Mason" <chris.mason@oracle.com>,
	"Tim Gardner" <tim.gardner@canonical.com>,
	linux-fsdevel@vger.kernel.org, kernel-team@lists.ubuntu.com,
	linux-btrfs@vger.kernel.org, "John Johansen" <jjohansen@suse.de>
Subject: Re: Btrfs v0.14 Released
Date: Fri, 2 May 2008 11:14:56 -0700	[thread overview]
Message-ID: <c24352ca0805021114u4c4cdf56leced2d6c23ae2bd4@mail.gmail.com> (raw)
In-Reply-To: <481B56FD.9020807@suse.com>

On Fri, May 2, 2008 at 11:01 AM, Jeff Mahoney <jeffm@suse.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
>  Hash: SHA1
>
>
>
> Jan Engelhardt wrote:
>  > On Friday 2008-05-02 18:26, Jeff Mahoney wrote:
>  >>> To the best of my knowledge, the AppArmor patches are arch and flavour
>  >>> independent. If CONFIG_SECURITY_APPARMOR exists, then the AA code is
>  >>> compiled. This is certainly the case for Hardy. Neither Kees or myself
>  >>> are aware of any reason why it won't also hold true for Intrepid.
>  >> Grumble. The issue isn't whether AA is enabled, it's whether it's
>  >> present in the source. Patching the source with AA modifies a bunch of
>  >> core VFS function prototypes. CONFIG_SECURITY_APPARMOR won't exist if AA
>  >> isn't enabled, but the prototypes will have changed anyway.
>  >
>  > So... add an invisible CONFIG_HAVE_APPARMOR, much like
>  > CONFIG_X86_HAVE_CMPXCHG (or whatever it's called), and test for that.
>  > As long as you are not in the mainline kernel, every hack is
>  > forgiven.
>
>  That'll work moving forward, but btrfs also supports older releases.
>
>
>  - -Jeff

So how about this for older releases? It should work on Ubuntu 7.10 or
8.10 installs with apparmor enabled by default:

#if defined(CONFIG_VERSION_SIGNATURE)
# if (LINUX_VERSION_CODE = KERNEL_VERSION(2,6,24)) ||
(LINUX_VERSION_CODE = KERNEL_VERSION(2,6,20))
# define REMOVE_SUID_PATH 1
# endif
#endif

Maybe add a blurb in the install doc about this for users trying to
build ubuntu kernels with no apparmor (probably a rarity).

CONFIG_VERSION_SIGNATURE can be likened to CONFIG_SUSE

-- 
Jeff Schroeder

Don't drink and derive, alcohol and analysis don't mix.
http://www.digitalprognosis.com

  reply	other threads:[~2008-05-02 18:15 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-29 20:01 Btrfs v0.14 Released Chris Mason
2008-05-01 16:04 ` Chris Mason
2008-05-01 16:18   ` Jeff Schroeder
2008-05-01 16:26     ` Chris Mason
2008-05-01 16:39       ` Jeff Schroeder
2008-05-01 19:06         ` Tim Gardner
2008-05-01 19:17           ` Chris Mason
2008-05-01 19:27             ` Jeff Mahoney
2008-05-01 19:36             ` Tim Gardner
2008-05-01 19:51               ` Kees Cook
2008-05-01 20:10               ` Jeff Mahoney
2008-05-02  6:40                 ` Jan Engelhardt
2008-05-02 12:52                   ` Chris Mason
2008-05-02 13:30                     ` Jan Engelhardt
2008-05-02 14:10                     ` Jan Engelhardt
2008-05-02 14:15                     ` Jeff Schroeder
2008-05-02 14:31                       ` Jan Engelhardt
2008-05-02 14:34                       ` Chris Mason
2008-05-02 14:38                         ` Matthew Wilcox
2008-05-02 14:52                           ` Chris Mason
2008-05-02 15:07                           ` Jan Engelhardt
2008-05-02 16:06                         ` Tim Gardner
2008-05-02 16:26                           ` Jeff Mahoney
2008-05-02 18:00                             ` Jan Engelhardt
2008-05-02 18:01                               ` Jeff Mahoney
2008-05-02 18:14                                 ` Jeff Schroeder [this message]
2008-05-02 20:58                           ` Chris Mason

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=c24352ca0805021114u4c4cdf56leced2d6c23ae2bd4@mail.gmail.com \
    --to=jeffschroed@gmail.com \
    --cc=chris.mason@oracle.com \
    --cc=jeffm@suse.com \
    --cc=jeffschroeder@computer.org \
    --cc=jengelh@medozas.de \
    --cc=jjohansen@suse.de \
    --cc=kernel-team@lists.ubuntu.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=tim.gardner@canonical.com \
    --cc=timg@tpi.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).