match.c (6b7781b42dc9bc9bcd1523b6c24b876cdda0bef3) | match.c (26fccd9ed2e283add2849858c28bd14f84d9c48e) |
---|---|
1/* 2 * AppArmor security module 3 * 4 * This file contains AppArmor dfa based regular expression matching engine 5 * 6 * Copyright (C) 1998-2008 Novell/SUSE 7 * Copyright 2009-2012 Canonical Ltd. 8 * --- 212 unchanged lines hidden (view full) --- 221 222/** 223 * aa_dfa_unpack - unpack the binary tables of a serialized dfa 224 * @blob: aligned serialized stream of data to unpack (NOT NULL) 225 * @size: size of data to unpack 226 * @flags: flags controlling what type of accept tables are acceptable 227 * 228 * Unpack a dfa that has been serialized. To find information on the dfa | 1/* 2 * AppArmor security module 3 * 4 * This file contains AppArmor dfa based regular expression matching engine 5 * 6 * Copyright (C) 1998-2008 Novell/SUSE 7 * Copyright 2009-2012 Canonical Ltd. 8 * --- 212 unchanged lines hidden (view full) --- 221 222/** 223 * aa_dfa_unpack - unpack the binary tables of a serialized dfa 224 * @blob: aligned serialized stream of data to unpack (NOT NULL) 225 * @size: size of data to unpack 226 * @flags: flags controlling what type of accept tables are acceptable 227 * 228 * Unpack a dfa that has been serialized. To find information on the dfa |
229 * format look in Documentation/security/apparmor.txt | 229 * format look in Documentation/admin-guide/LSM/apparmor.rst |
230 * Assumes the dfa @blob stream has been aligned on a 8 byte boundary 231 * 232 * Returns: an unpacked dfa ready for matching or ERR_PTR on failure 233 */ 234struct aa_dfa *aa_dfa_unpack(void *blob, size_t size, int flags) 235{ 236 int hsize; 237 int error = -ENOMEM; --- 222 unchanged lines hidden --- | 230 * Assumes the dfa @blob stream has been aligned on a 8 byte boundary 231 * 232 * Returns: an unpacked dfa ready for matching or ERR_PTR on failure 233 */ 234struct aa_dfa *aa_dfa_unpack(void *blob, size_t size, int flags) 235{ 236 int hsize; 237 int error = -ENOMEM; --- 222 unchanged lines hidden --- |