limal-apparmor-control
ApparmorControl.hpp
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | |
3 | _ _ _ _ __ _ |
4 | | | | | | \_/ | / \ | | |
5 | | | | | | |_| | / /\ \ | | |
6 | | |__ | | | | | | / ____ \ | |__ |
7 | |____||_| |_| |_|/ / \ \|____| |
8 | |
9 | apparmor-control library |
10 | |
11 | (C) SUSE Linux Products GmbH |
12 \----------------------------------------------------------------------/
13 
14  File: ApparmorControl.hpp
15 
16  Author: Matt Barringer <mbarringer@suse.de>
17  Maintainer: Matt Barringer <mbarringer@suse.de>
18 
19  Purpose:
20 
21 /-*/
26 #ifndef LIMAL_APPARMOR_CONTROL_HPP
27 #define LIMAL_APPARMOR_CONTROL_HPP
28 
30 #include <blocxx/String.hpp>
31 #include <blocxx/COWIntrusiveReference.hpp>
32 namespace LIMAL_NAMESPACE
33 {
34 namespace APPARMOR_CONTROL_NAMESPACE
35 {
36 
42 {
43 public:
45  ~ApparmorControl();
46 
47 
52  blocxx::String getPathToInitScript() const;
53 
59  void setpathToInitScript(const blocxx::String &script);
60 
65  blocxx::String getPathToSubdomainStatusScript() const;
66 
71  void setPathToSubdomainStatusScript(const blocxx::String &script);
72 
77  blocxx::Int32 startAppArmor();
78 
83  blocxx::Int32 stopAppArmor();
84 
89  blocxx::Int32 isEnabled();
90 
91 private:
92  class Data;
93  blocxx::COWIntrusiveReference<Data> m_data;
94 
95 };
96 
97 } // End of APPARMOR_CONTROL_NAMESPACE
98 
99 namespace Apparmor
100 {
101 
103 
104 }
105 
106 } // End of LIMAL_NAMESPACE
107 
108 #endif // LIMAL_APPARMOR_CONTROL_HPP
109