Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Adding ability to monitor whole folders #784

Merged
merged 8 commits into from Mar 3, 2015

Conversation

obelisk
Copy link
Contributor

@obelisk obelisk commented Feb 21, 2015

No description provided.

@@ -125,6 +127,10 @@ Status listDirectoriesInDirectory(const boost::filesystem::path& path,
Status resolveFilePattern(const boost::filesystem::path& fs_path,
std::vector<std::string>& results);

Status resolveFilePattern(const boost::filesystem::path& fs_path,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a doxygen comment indicating what setting is for?

@marpaia
Copy link
Contributor

marpaia commented Feb 23, 2015

looks good other than those two comments.

@@ -245,10 +244,15 @@ Status doubleStarTraversal(const boost::filesystem::path& fs_path,
*/
Status resolveLastPathComponent(const boost::filesystem::path& fs_path,
std::vector<std::string>& results,
unsigned int setting,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See [1] EnumName setting

Fixed a bug where when using REC_LIST_FOLDERS, the root resolution directory
would not be returned.
@obelisk obelisk added ready for review Pull requests that are ready to be reviewed by a maintainer and removed in progress labels Mar 2, 2015
EXPECT_EQ(files["system_binaries"].size(), 5);
EXPECT_EQ(files["downloads"].size(), 1);
for (const auto& file : files["system_binaries"]) {
std::cout << file << "\n";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove me plz

@@ -59,7 +59,9 @@ void FileChangesEventSubscriber::init() {

for (const auto& element_kv : file_map) {
for (const auto& file : element_kv.second) {
VLOG(1) << "Added Listener To: " << file;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You Don't Need To Cap Every Word :)

obelisk added a commit that referenced this pull request Mar 3, 2015
Adding ability to monitor whole folders
@obelisk obelisk merged commit 3d27fff into osquery:master Mar 3, 2015
@obelisk obelisk deleted the directory_monitoring branch March 3, 2015 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review Pull requests that are ready to be reviewed by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants