~ubuntu-branches/ubuntu/wily/apparmor/wily

« back to all changes in this revision

Viewing changes to parser/profile.h

  • Committer: Package Import Robot
  • Author(s): Jamie Strandboge
  • Date: 2014-09-08 16:13:10 UTC
  • mto: This revision was merged to the branch mainline in revision 76.
  • Revision ID: package-import@ubuntu.com-20140908161310-zf42uss925jnp56t
Tags: upstream-2.8.96~2652
ImportĀ upstreamĀ versionĀ 2.8.96~2652

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include "parser.h"
22
22
#include "rule.h"
23
23
#include "libapparmor_re/aare_rules.h"
 
24
#include "network.h"
24
25
 
25
26
class Profile;
26
27
 
101
102
                };
102
103
};
103
104
 
104
 
struct network {
105
 
        unsigned int *allow;            /* array of type masks
106
 
                                                 * indexed by AF_FAMILY */
107
 
        unsigned int *audit;
108
 
        unsigned int *deny;
109
 
        unsigned int *quiet;
110
 
 
111
 
        network(void) { allow = audit = deny = quiet = NULL; }
112
 
 
113
 
        void dump(void) {
114
 
                if (allow)
115
 
                        __debug_network(allow, "Network");
116
 
                if (audit)
117
 
                        __debug_network(audit, "Audit Net");
118
 
                if (deny)
119
 
                        __debug_network(deny, "Deny Net");
120
 
                if (quiet)
121
 
                        __debug_network(quiet, "Quiet Net");
122
 
        }
123
 
};
124
 
 
125
105
struct dfa_stuff {
126
106
        aare_rules *rules;
127
107
        void *dfa;
231
211
                hat_table.dump();
232
212
        }
233
213
 
 
214
        bool alloc_net_table();
 
215
 
234
216
        std::string* get_name(bool fqp)
235
217
        {
236
218
                std::string *buf;