FIX essential security check in block-attach / indentation problem introduced in change set changeset 11572
This patch fixes an indentation error in main.py. The effect of this bug is that block-attach does not check labels if the ACM is active. This bug slipped in with change set 11572_:_ ad22c711ccb7 <http://xenbits.xensource.com/xen-unstable.hg?cs=ad22c711ccb7>.
This patch is essential and should get into 3.0.3. I tested the patch with security off and on.
Thanks
ReinerP.S. We are currently enhancing xm-test to include security tests so that we can detect simple things like this faster.
Signed-off by: Reiner Sailer <[email protected]>
--- tools/python/xen/xm/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
tools/python/xen/xm/main.py +2 -1
@@ -1222,7 +1222,8 @@ def parse_block_configuration(args): label = security.get_security_printlabel(dominfo) else: label = None - security.res_security_check(args[1], label) + + security.res_security_check(args[1], label) return (dom, vbd)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 7 lines · Reiner Sailer
This patch fixes an indentation error in
main.py. The effect of this bug is that block-attach does not check labels if the ACM is active. This bug slipped in with change set 11572_:_ad22c711ccb7<http://xenbits.xensource.com/xen-unstable.hg?cs=ad22c711ccb7>.This patch is essential and should get into 3.0.3. I tested the patch with security off and on.
Thanks
ReinerP.S. We are currently enhancing xm-test to include security tests so that we can detect simple things like this faster.
Applied. Thanks. An xm-test would be very helpful indeed in order to pick up bugs like these.
Cheers,
Alastair
[email protected] wrote on 10/03/2006 05:59:07 AM:
Quoted 11 lines · Reiner Sailer
Quoted 9 lines
This patch fixes an indentation error in
main.py. The effect of this bug is that block-attach does not check labels if the ACM is active. This bug slipped in with change set 11572_:_ad22c711ccb7
<http://xenbits.xensource.com/xen-unstable.hg?cs=ad22c711ccb7>.This patch is essential and should get into 3.0.3. I tested the patch with security off and on.
Quoted 7 lines
Quoted 4 lines
Thanks
ReinerP.S. We are currently enhancing xm-test to include security tests so that we can detect simple things like this faster.Applied. Thanks. An xm-test would be very helpful indeed in order to pick up bugs like these.
I am currently building one. When should I post it? Asap?
Stefan
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel