a7e834f0b7a8f6bbb6bc624d1863d4a95c1fb0f5
[platform/core/security/suspicious-activity-monitor.git] / dpm-tm1 / server / iptables.h
1 /*
2  * libmdm
3  * Copyright ⓒ Samsung Electronics, Co., Ltd. All rights reserved.
4  *
5  * This software contains confidential and proprietary information
6  * of Samsung Electronics Co., Ltd.
7  * The user of this software agrees not to disclose, disseminate or copy such
8  * Confidential Information and shall use the software only in accordance with
9  * the terms of the license agreement the user entered into with Samsung.
10  */
11
12 #include <string>
13 #include <vector>
14
15 #include "firewall-rule.h"
16
17 namespace DevicePolicyManager {
18
19 class Iptables {
20 public:
21         static int flushChain(const std::string& table, const std::string& chain);
22         static int makeChain(const std::string& table, const std::string& chain);
23         static int appendChain(const std::string& table, const std::string& chain, const std::string& rule);
24         static int applyInboundRule(const std::string& chain, const FirewallRule& rule);
25         static int applyOutboundRule(const std::string& chain, const FirewallRule& rule);
26 };
27
28 } // namespace DevicePolicyManager