Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Ensure that the binary is named lockcd #160

Merged
merged 1 commit into from
Jan 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions lockc/src/main.rs → lockc/src/bin/lockcd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,13 @@ use tokio::{
use tracing::{debug, error, Level};
use tracing_subscriber::FmtSubscriber;

mod bpfstructs;
mod communication;
mod load;
mod maps;
mod runc;
mod settings;
mod sysutils;

use communication::EbpfCommand;
use load::{attach_programs, load_bpf};
use maps::{add_container, add_process, delete_container, init_allowed_paths};
use runc::RuncWatcher;
use sysutils::check_bpf_lsm_enabled;
use lockc::{
communication::EbpfCommand,
load::{attach_programs, load_bpf},
maps::{add_container, add_process, delete_container, init_allowed_paths},
runc::RuncWatcher,
sysutils::check_bpf_lsm_enabled,
};

#[derive(Error, Debug)]
enum FanotifyError {
Expand Down
7 changes: 7 additions & 0 deletions lockc/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pub mod bpfstructs;
pub mod communication;
pub mod load;
pub mod maps;
pub mod runc;
pub mod settings;
pub mod sysutils;