FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 03-23-2009, 10:51 PM
Brad Figg
 
Default UBUNTU: SAUCE: Add checking for AppArmorFS creation failure.

Bug: 344370

When the creation of the AppArmor FS fails the default_namespace is
free'd. However, this was not being checked for and was being used
anyway.

Signed-off-by: Brad Figg <brad.figg@canonical.com>
---
security/apparmor/main.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/security/apparmor/main.c b/security/apparmor/main.c
index 5f9c1cd..a0434da 100644
--- a/security/apparmor/main.c
+++ b/security/apparmor/main.c
@@ -1219,11 +1219,13 @@ repeat:
sa.error_code = -EACCES;
new_profile = ERR_PTR(aa_audit_file(profile, &sa));
}
- } else {
+ } else if (default_namespace) {
/* Unconfined task, load profile if it exists */
new_profile = aa_register_find(NULL, NULL, filename, 0, 0, &sa);
if (new_profile == NULL)
goto cleanup;
+ } else {
+ goto cleanup;
}

if (IS_ERR(new_profile))
--
1.6.1.3


--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 

Thread Tools




All times are GMT. The time now is 05:30 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org