login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
3
Re: linux-next: build failure after merge of the security-testing tree
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: John Johansen
Subject:
Re: linux-next: build failure after merge of the security-testing tree
Date: Monday, August 2, 2010 - 5:04 pm
On 08/01/2010 07:16 PM, Stephen Rothwell wrote:
quoted text
> Hi James, > > After merging the security-testing tree, today's linux-next build (x86_64 > allmodconfig) failed like this (also some warnings ...): > > security/apparmor/ipc.c: In function 'aa_ptrace': > security/apparmor/ipc.c:103: warning: initialization discards qualifiers from pointer target type > security/apparmor/domain.c: In function 'may_change_ptraced_domain': > security/apparmor/domain.c:73: warning: assignment discards qualifiers from pointer target type > security/apparmor/lsm.c:701: error: 'param_ops_aabool' undeclared here (not in a function) > security/apparmor/lsm.c:721: error: 'param_ops_aalockpolicy' undeclared here (not in a function) > security/apparmor/lsm.c:729: error: 'param_ops_aauint' undeclared here (not in a function) > > Error caused by commit e0500000b50a50ec8cc9967001f3ed201b83cb36 > ("AppArmor: LSM interface, and security module initialization") > interacting with commit 0685652df0929cec7d78efa85127f6eb34962132 > ("param:param_ops") from the rr tree. > > I applied the following merge fix patch: > > From: Stephen Rothwell <sfr@canb.auug.org.au> > Date: Mon, 2 Aug 2010 12:00:43 +1000 > Subject: [PATCH] AppArmor: update for module_param_named API change > > Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
looks good, thanks Stephen Signed-off-by: John Johansen <john.johansen@canonical.com>
quoted text
> --- > security/apparmor/lsm.c | 36 ++++++++++++++++++++++++------------ > 1 files changed, 24 insertions(+), 12 deletions(-) > > diff --git a/security/apparmor/lsm.c b/security/apparmor/lsm.c > index 8db33a8..d5666d3 100644 > --- a/security/apparmor/lsm.c > +++ b/security/apparmor/lsm.c > @@ -667,17 +667,29 @@ static struct security_operations apparmor_ops = { > * AppArmor sysfs module parameters > */ > > -static int param_set_aabool(const char *val, struct kernel_param *kp); > -static int param_get_aabool(char *buffer, struct kernel_param *kp); > +static int param_set_aabool(const char *val, const struct kernel_param *kp); > +static int param_get_aabool(char *buffer, const struct kernel_param *kp); > #define param_check_aabool(name, p) __param_check(name, p, int) > +static struct kernel_param_ops param_ops_aabool = { > + .set = param_set_aabool, > + .get = param_get_aabool > +}; > > -static int param_set_aauint(const char *val, struct kernel_param *kp); > -static int param_get_aauint(char *buffer, struct kernel_param *kp); > +static int param_set_aauint(const char *val, const struct kernel_param *kp); > +static int param_get_aauint(char *buffer, const struct kernel_param *kp); > #define param_check_aauint(name, p) __param_check(name, p, int) > +static struct kernel_param_ops param_ops_aauint = { > + .set = param_set_aauint, > + .get = param_get_aauint > +}; > > -static int param_set_aalockpolicy(const char *val, struct kernel_param *kp); > -static int param_get_aalockpolicy(char *buffer, struct kernel_param *kp); > +static int param_set_aalockpolicy(const char *val, const struct kernel_param *kp); > +static int param_get_aalockpolicy(char *buffer, const struct kernel_param *kp); > #define param_check_aalockpolicy(name, p) __param_check(name, p, int) > +static struct kernel_param_ops param_ops_aalockpolicy = { > + .set = param_set_aalockpolicy, > + .get = param_get_aalockpolicy > +}; > > static int param_set_audit(const char *val, struct kernel_param *kp); > static int param_get_audit(char *buffer, struct kernel_param *kp); > @@ -751,7 +763,7 @@ static int __init apparmor_enabled_setup(char *str) > __setup("apparmor=", apparmor_enabled_setup); > > /* set global flag turning off the ability to load policy */ > -static int param_set_aalockpolicy(const char *val, struct kernel_param *kp) > +static int param_set_aalockpolicy(const char *val, const struct kernel_param *kp) > { > if (!capable(CAP_MAC_ADMIN)) > return -EPERM; > @@ -760,35 +772,35 @@ static int param_set_aalockpolicy(const char *val, struct kernel_param *kp) > return param_set_bool(val, kp); > } > > -static int param_get_aalockpolicy(char *buffer, struct kernel_param *kp) > +static int param_get_aalockpolicy(char *buffer, const struct kernel_param *kp) > { > if (!capable(CAP_MAC_ADMIN)) > return -EPERM; > return param_get_bool(buffer, kp); > } > > -static int param_set_aabool(const char *val, struct kernel_param *kp) > +static int param_set_aabool(const char *val, const struct kernel_param *kp) > { > if (!capable(CAP_MAC_ADMIN)) > return -EPERM; > return param_set_bool(val, kp); > } > > -static int param_get_aabool(char *buffer, struct kernel_param *kp) > +static int param_get_aabool(char *buffer, const struct kernel_param *kp) > { > if (!capable(CAP_MAC_ADMIN)) > return -EPERM; > return param_get_bool(buffer, kp); > } > > -static int param_set_aauint(const char *val, struct kernel_param *kp) > +static int param_set_aauint(const char *val, const struct kernel_param *kp) > { > if (!capable(CAP_MAC_ADMIN)) > return -EPERM; > return param_set_uint(val, kp); > } > > -static int param_get_aauint(char *buffer, struct kernel_param *kp) > +static int param_get_aauint(char *buffer, const struct kernel_param *kp) > { > if (!capable(CAP_MAC_ADMIN)) > return -EPERM;
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
linux-next: build failure after merge of the security-test ...
, Stephen Rothwell
, (Sun Aug 1, 7:16 pm)
Re: linux-next: build failure after merge of the security- ...
, John Johansen
, (Mon Aug 2, 5:04 pm)
Re: linux-next: Fix AppArmor build warnings after merge of ...
, John Johansen
, (Mon Aug 2, 7:40 pm)
Re: linux-next: build failure after merge of the security- ...
, Stephen Rothwell
, (Wed Aug 4, 6:37 pm)
Re: linux-next: Fix AppArmor build warnings after merge of ...
, Stephen Rothwell
, (Tue Aug 17, 5:56 pm)
Re: linux-next: Fix AppArmor build warnings after merge of ...
, Stephen Rothwell
, (Tue Aug 17, 6:00 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Robin Lee Powell
NFS hang + umount -f: better behaviour requested.
Linus Torvalds
Linux 2.6.34-rc4
Colin Cross
[PATCH 12/21] ARM: tegra: Add suspend and hotplug support
git
:
Fredrik Kuivinen
Re: fatal: unable to create '.git/index': File exists
Wink Saville
How-to combine several separate git repos?
Emily Ren
How to pull remote branch with specified commit id?
Denis Bueno
Git clone error
pradeep singh
git-update-server-info may be required,cannot clone and pull from a remote reposit...
openbsd-misc
:
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
Siju George
This is what Linus Torvalds calls openBSD crowd
Darrin Chandler
Re: OT: Python (was Re: vi in /bin)
frantisek holop
Re: splassert: vwakeup: and friends
linux-netdev
:
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Timo Teräs
ip xfrm policy semantics
Ron Mercer
[net-next PATCH 2/2] qlge: Version change to v1.00.00.27
Maciej W. Rozycki
Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event...
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
git-commits-head
:
Linux Kernel Mailing List
powerpc/fsl_msi: enable msi allocation in all banks
Linux Kernel Mailing List
ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
bnx2x: Moving includes
Linux Kernel Mailing List
[ARM] mmp: add dma support to mmp2
Colocation donated by:
Syndicate