UBUNTU: SAUCE: apparmor4.0.0 [87/90]: fixup notify
BugLink: http://bugs.launchpad.net/bugs/2028253 (cherry picked from commit fb00e41adbe0c5c0e0f2bcaaf2949fec00b2a941 https://git.launchpad.net/~apparmor-dev/ubuntu-kernel-next) Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
This commit is contained in:
committed by
Paolo Pisati
parent
06bb02860a
commit
355f737dd7
@@ -971,10 +971,10 @@ static long build_v3_unotif(struct aa_knotif *knotif, void __user *buf,
|
||||
pos = buf + sizeof(unotif);
|
||||
if (!build_append_str(buf, pos, max_size, profile->base.hname,
|
||||
unotif.op.label, size))
|
||||
return size;
|
||||
return -EMSGSIZE;
|
||||
if (!build_append_str(buf, pos, max_size, knotif->ad->name,
|
||||
unotif.file.name, size))
|
||||
return size;
|
||||
return -EMSGSIZE;
|
||||
|
||||
/* set size after appending strings */
|
||||
unotif.common.len = size;
|
||||
|
||||
Reference in New Issue
Block a user