Skip to content

Commit

Permalink
Merge pull request #136 from Achiefs/bump-0.5.0
Browse files Browse the repository at this point in the history
Bump to 0.5.0
  • Loading branch information
okynos authored Nov 21, 2023
2 parents 7691d3e + 6838aa2 commit ba6d03c
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fim"
version = "0.4.10"
version = "0.5.0"
authors = ["José Fernández <´pylott@gmail.com´>"]
edition = "2021"

Expand Down
6 changes: 6 additions & 0 deletions pkg/deb/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
fim (0.5.0-1) xenial; urgency=medium

* More info: https://github.com/Achiefs/fim/releases/tag/v0.5.0

-- Jose Fernandez <support@achiefs.com> Fri, 17 Nov 2023 12:57:00 +0000

fim (0.4.10-1) xenial; urgency=medium

* More info: https://github.com/Achiefs/fim/releases/tag/v0.4.10
Expand Down
2 changes: 1 addition & 1 deletion pkg/fim.1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
.\" *
.\" **************************************************************************
.\"
.TH fim 1 "01 Jun 2022" "FIM 0.4.10" "FIM Manual"
.TH fim 1 "01 Jun 2022" "FIM 0.5.0" "FIM Manual"

.SH NAME
.B FIM
Expand Down
2 changes: 1 addition & 1 deletion pkg/msi/fim.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
<Product Name='File Integrity Monitor' Manufacturer='Achiefs LLC.' Id='*'
UpgradeCode='5b9136b1-f19d-4af0-9efe-356fabdf1467'
Language='1033' Codepage='1252' Version='0.4.10'>
Language='1033' Codepage='1252' Version='0.5.0'>
<Package Id='*' Keywords='Installer'
Description="FIM is a Host-based file monitoring tool that performs file system analysis and real time alerting."
Comments='FIM is an open source application, coded in Rust.'
Expand Down
3 changes: 3 additions & 0 deletions pkg/rpm/fim.spec
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ rm -fr %{buildroot}
# -----------------------------------------------------------------------------

%changelog
* Fri Nov 17 2023 support <support@achiefs.com> - 0.5.0
- More info: https://github.com/Achiefs/fim/releases/tag/v0.5.0

* Tue Oct 31 2023 support <support@achiefs.com> - 0.4.10
- More info: https://github.com/Achiefs/fim/releases/tag/v0.4.10

Expand Down
6 changes: 3 additions & 3 deletions src/auditevent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ mod tests {
]),
HashMap::<String, String>::from([
(String::from("nametype"), String::from("nametype")),
(String::from("name"), String::from("/tmp")),
(String::from("name"), String::from("/tmp/test.txt")),
(String::from("ogid"), String::from("ogid")),
(String::from("rdev"), String::from("rdev")),
(String::from("cap_fver"), String::from("cap_fver")),
Expand Down Expand Up @@ -680,8 +680,8 @@ mod tests {
assert_eq!(String::from("FIM"), event.node);
assert_eq!(String::from(config::VERSION), event.version);
assert_eq!(String::from("/tmp"), event.path);
assert_eq!(String::from("tmp"), event.file);
assert_eq!(4096, event.size);
assert_eq!(String::from("test.txt"), event.file);
assert_eq!(0, event.size);
//assert_eq!(..., event.labels);
//assert_eq!(..., event.parent);
assert_eq!(String::from("nametype"), event.operation);
Expand Down
9 changes: 3 additions & 6 deletions src/config.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (C) 2021, Achiefs.

// Global constants definitions
pub const VERSION: &str = "0.4.10";
pub const VERSION: &str = "0.5.0";
pub const NETWORK_MODE: &str = "NETWORK";
pub const FILE_MODE: &str = "FILE";
pub const BOTH_MODE: &str = "BOTH";
Expand Down Expand Up @@ -378,16 +378,13 @@ impl Config {
// Returns if a given path and filename is in the configuration paths
pub fn path_in(&self, raw_path: &str, cwd: &str, vector: Vec<Yaml>) -> bool {
// Iterate over monitoring paths to match ignore string and ignore event or not
match vector.iter().any(|it| {
vector.iter().any(|it| {
if raw_path.starts_with("./") || raw_path == "." || !raw_path.contains('/') {
utils::match_path(cwd, it["path"].as_str().unwrap())
}else{
utils::match_path(raw_path, it["path"].as_str().unwrap())
}
}){
true => true,
false => false
}
})
}

// ------------------------------------------------------------------------
Expand Down

0 comments on commit ba6d03c

Please sign in to comment.