mac_veriexec ensure label fields are initialized
Obtained from: bkumara@juniper.net
This commit is contained in:
parent
b8f51b8c54
commit
6eabf4ce35
@ -732,14 +732,12 @@ mac_veriexec_metadata_add_file(int file_dev, dev_t fsid, long fileid,
|
||||
ip->ops = fpops;
|
||||
ip->fileid = fileid;
|
||||
ip->gen = gen;
|
||||
ip->label = NULL;
|
||||
ip->labellen = 0;
|
||||
memcpy(ip->fingerprint, fingerprint, fpops->digest_len);
|
||||
if (flags & VERIEXEC_LABEL)
|
||||
ip->labellen = mac_veriexec_init_label(&ip->label,
|
||||
ip->labellen, label, labellen);
|
||||
else {
|
||||
ip->label = NULL;
|
||||
ip->labellen = 0;
|
||||
}
|
||||
|
||||
VERIEXEC_DEBUG(3, ("add file %ju.%lu (files=%d)\n",
|
||||
(uintmax_t)ip->fileid,
|
||||
|
Loading…
Reference in New Issue
Block a user