* 2.6.17-rc1 compile failure
@ 2006-04-03 5:21 Horst von Brand
2006-04-03 15:16 ` Jiri Slaby
0 siblings, 1 reply; 4+ messages in thread
From: Horst von Brand @ 2006-04-03 5:21 UTC (permalink / raw)
To: Linux Kernel Mailing List
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 697 bytes --]
It ends with:
CC security/selinux/xfrm.o
security/selinux/xfrm.c: In function ‘selinux_socket_getpeer_dgram’:
security/selinux/xfrm.c:284: error: ‘struct sec_path’ has no member named ‘x’
security/selinux/xfrm.c: In function ‘selinux_xfrm_sock_rcv_skb’:
security/selinux/xfrm.c:317: error: ‘struct sec_path’ has no member named ‘x’
make[2]: *** [security/selinux/xfrm.o] Error 1
--
Dr. Horst H. von Brand User #22616 counter.li.org
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6.17-rc1 compile failure
2006-04-03 5:21 2.6.17-rc1 compile failure Horst von Brand
@ 2006-04-03 15:16 ` Jiri Slaby
2006-04-03 18:09 ` Horst von Brand
0 siblings, 1 reply; 4+ messages in thread
From: Jiri Slaby @ 2006-04-03 15:16 UTC (permalink / raw)
To: Horst von Brand; +Cc: Linux Kernel Mailing List, sds, jmorris, selinux
[-- Attachment #1: Type: text/plain, Size: 935 bytes --]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Horst von Brand napsal(a):
> It ends with:
>
> CC security/selinux/xfrm.o
> security/selinux/xfrm.c: In function â??selinux_socket_getpeer_dgramâ??:
> security/selinux/xfrm.c:284: error: â??struct sec_pathâ?? has no member named â??xâ??
> security/selinux/xfrm.c: In function â??selinux_xfrm_sock_rcv_skbâ??:
> security/selinux/xfrm.c:317: error: â??struct sec_pathâ?? has no member named â??xâ??
> make[2]: *** [security/selinux/xfrm.o] Error 1
Could you test attached patch?
thanks,
- --
Jiri Slaby www.fi.muni.cz/~xslaby
\_.-^-._ jirislaby@gmail.com _.-^-._/
B67499670407CE62ACC8 22A032CC55C339D47A7E
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFEMTxDMsxVwznUen4RAgLCAJ9WEAU018cecP1emeMZKfCTrttVeQCgric6
g9Cq+yh5IvmVJGHqlVsIEXs=
=9MLb
-----END PGP SIGNATURE-----
[-- Attachment #2: selinux-xfrm.txt --]
[-- Type: text/plain, Size: 1317 bytes --]
SELinux-xfrm-compilation-fix
sec_path struct no longer contains sec_decap_state struct, but only
xfrm_state.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
---
commit 87b9e5f728ab1f5f805f1db9d96d569b1218b611
tree 60d080432a06f8bdddb8665a89dd825a33b2b01f
parent 9e4a4f43bab1268fc459295a673d00470d5e150d
author Jiri Slaby <ku@bellona.localdomain> Mon, 03 Apr 2006 17:11:07 +0159
committer Jiri Slaby <ku@bellona.localdomain> Mon, 03 Apr 2006 17:11:07 +0159
security/selinux/xfrm.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/security/selinux/xfrm.c b/security/selinux/xfrm.c
index dfab6c8..abe99d8 100644
--- a/security/selinux/xfrm.c
+++ b/security/selinux/xfrm.c
@@ -281,7 +281,7 @@ u32 selinux_socket_getpeer_dgram(struct
int i;
for (i = sp->len-1; i >= 0; i--) {
- struct xfrm_state *x = sp->x[i].xvec;
+ struct xfrm_state *x = sp->xvec[i];
if (selinux_authorizable_xfrm(x)) {
struct xfrm_sec_ctx *ctx = x->security;
return ctx->ctx_sid;
@@ -314,7 +314,7 @@ int selinux_xfrm_sock_rcv_skb(u32 isec_s
* Only need to verify the existence of an authorizable sp.
*/
for (i = 0; i < sp->len; i++) {
- struct xfrm_state *x = sp->x[i].xvec;
+ struct xfrm_state *x = sp->xvec[i];
if (x && selinux_authorizable_xfrm(x))
goto accept;
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: 2.6.17-rc1 compile failure
2006-04-03 15:16 ` Jiri Slaby
@ 2006-04-03 18:09 ` Horst von Brand
0 siblings, 0 replies; 4+ messages in thread
From: Horst von Brand @ 2006-04-03 18:09 UTC (permalink / raw)
To: Jiri Slaby
Cc: Horst von Brand, Linux Kernel Mailing List, sds, jmorris, selinux
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1471 bytes --]
Jiri Slaby <jirislaby@gmail.com> wrote:
> Horst von Brand napsal(a):
> > It ends with:
> >
> > CC security/selinux/xfrm.o
> > security/selinux/xfrm.c: In function â??selinux_socket_getpeer_dgramâ??:
> > security/selinux/xfrm.c:284: error: â??struct sec_pathâ?? has no member named â??xâ??
> > security/selinux/xfrm.c: In function â??selinux_xfrm_sock_rcv_skbâ??:
> > security/selinux/xfrm.c:317: error: â??struct sec_pathâ?? has no member named â??xâ??
> > make[2]: *** [security/selinux/xfrm.o] Error 1
> Could you test attached patch?
>
> thanks,
> - --
> Jiri Slaby www.fi.muni.cz/~xslaby
> \_.-^-._ jirislaby@gmail.com _.-^-._/
> B67499670407CE62ACC8 22A032CC55C339D47A7E
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2.2 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
>
> iD8DBQFEMTxDMsxVwznUen4RAgLCAJ9WEAU018cecP1emeMZKfCTrttVeQCgric6
> g9Cq+yh5IvmVJGHqlVsIEXs=
> =9MLb
> -----END PGP SIGNATURE-----
> SELinux-xfrm-compilation-fix
>
> sec_path struct no longer contains sec_decap_state struct, but only
> xfrm_state.
>
> Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Yep, that got it to build. Thanks!
--
Dr. Horst H. von Brand User #22616 counter.li.org
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513
^ permalink raw reply [flat|nested] 4+ messages in thread
* 2.6.17-rc1 compile failure
@ 2006-04-11 11:06 Jan Engelhardt
0 siblings, 0 replies; 4+ messages in thread
From: Jan Engelhardt @ 2006-04-11 11:06 UTC (permalink / raw)
To: Linux Kernel Mailing List
[-- Attachment #1: Type: TEXT/PLAIN, Size: 408 bytes --]
Hi,
I just tried an allyesconfig on 2.6.17-rc1 and this popped up:
security/selinux/xfrm.c: In function ‘selinux_socket_getpeer_dgram’:
security/selinux/xfrm.c:284: error: ‘struct sec_path’ has no member named
‘x’
security/selinux/xfrm.c: In function ‘selinux_xfrm_sock_rcv_skb’:
security/selinux/xfrm.c:317: error: ‘struct sec_path’ has no member named
‘x’
Jan Engelhardt
--
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-04-11 11:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-03 5:21 2.6.17-rc1 compile failure Horst von Brand
2006-04-03 15:16 ` Jiri Slaby
2006-04-03 18:09 ` Horst von Brand
-- strict thread matches above, loose matches on Subject: below --
2006-04-11 11:06 Jan Engelhardt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox