fapolicy_rules/
lib.rs

1/*
2 * Copyright Concurrent Technologies Corporation 2021
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
7 */
8
9pub use self::decision::Decision;
10pub use self::file_type::Rvalue;
11pub use self::object::Object;
12pub use self::object::Part as ObjPart;
13pub use self::permission::Permission;
14pub use self::rule::Rule;
15pub use self::set::Set;
16pub use self::subject::Part as SubjPart;
17pub use self::subject::Subject;
18
19pub mod ops;
20pub mod parser;
21
22mod decision;
23mod file_type;
24mod linter;
25mod object;
26
27pub mod db;
28pub mod error;
29pub mod load;
30
31mod permission;
32mod rule;
33mod set;
34mod subject;
35
36pub mod read;
37pub mod write;
38
39pub(crate) fn bool_to_c(b: bool) -> char {
40    if b {
41        '1'
42    } else {
43        '0'
44    }
45}