Skip to content

Commit

Permalink
Fix vi, WhiteBeam 0.2.4 cont.
Browse files Browse the repository at this point in the history
  • Loading branch information
noproto committed Sep 4, 2021
1 parent 5895012 commit 5528af6
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 7 deletions.
18 changes: 17 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.2.4] - 2021-09-03

### Added

- Action arguments

### Changed

- Refactored RedirectFunction action
- Updated to latest dependencies

### Fixed

- Linux LD_PRELOAD/LD_AUDIT library: Stability enhancements cont.

## [0.2.3] - 2021-08-02

### Added
Expand Down Expand Up @@ -236,7 +251,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Project license

[unreleased]: https://github.com/WhiteBeamSec/WhiteBeam/compare/v0.2.3...HEAD
[unreleased]: https://github.com/WhiteBeamSec/WhiteBeam/compare/v0.2.4...HEAD
[0.2.4]: https://github.com/WhiteBeamSec/WhiteBeam/compare/v0.2.3...v0.2.4
[0.2.3]: https://github.com/WhiteBeamSec/WhiteBeam/compare/v0.2.2...v0.2.3
[0.2.2]: https://github.com/WhiteBeamSec/WhiteBeam/compare/v0.2.1...v0.2.2
[0.2.1]: https://github.com/WhiteBeamSec/WhiteBeam/compare/v0.2.0...v0.2.1
Expand Down
2 changes: 1 addition & 1 deletion src/application/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# General info
[package]
name = "whitebeam"
version = "0.2.3"
version = "0.2.4"
authors = ["WhiteBeam Security, Inc."]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion src/installer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# General info
[package]
name = "whitebeam-installer"
version = "0.2.3"
version = "0.2.4"
authors = ["WhiteBeam Security, Inc."]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion src/library/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# General info
[package]
name = "libwhitebeam"
version = "0.2.3"
version = "0.2.4"
authors = ["WhiteBeam Security, Inc."]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion src/library/common/action/actions/open_file_descriptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ build_action! { OpenFileDescriptor (src_prog, hook, arg_id, args, _act_args, do_
let mut glibc_extensions = 0;
if mode_no_ccs.contains("e") { glibc_extensions |= libc::O_CLOEXEC };
if mode_no_ccs.contains("x") { glibc_extensions |= libc::O_EXCL };
let mode_clean = mode_no_ccs.replace(&['b', 'c', 'e', 'm', 'x'][..], "");
let mode_clean = mode_no_ccs.replace(&['b', 'c', 'e', 'm', 't', 'x'][..], "");
// fopen() mode => open() flags
let regular_flags: i32 = match mode_clean.as_ref() {
"r" => libc::O_RDONLY,
Expand Down
2 changes: 1 addition & 1 deletion src/library/common/action/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub fn process_action(src_prog: String, rule: db::RuleRow, hook: db::HookRow, ar
pub fn process_post_action(_src_prog: String, hook_orig: db::HookRow, hook: db::HookRow, args: Vec<db::ArgumentRow>) -> (bool, isize) {
let do_return = false;
let return_value = 0 as isize;
// TODO: Replace below with post action framework (0.2.5)
// TODO: Replace below with post action framework
// TODO: May need fopen/fopen64 => fdopen
match (hook_orig.symbol.as_ref(), hook.symbol.as_ref()) {
("symlink", "symlinkat") => {
Expand Down
2 changes: 1 addition & 1 deletion src/library/tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# General info
[package]
name = "libwhitebeam-tests"
version = "0.2.3"
version = "0.2.4"
authors = ["WhiteBeam Security, Inc."]
edition = "2018"

Expand Down

0 comments on commit 5528af6

Please sign in to comment.