mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 10:23:54 +00:00
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
/*
|
|
* Copyright (c) 2014-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*
|
|
*/
|
|
|
|
#include <osquery/tables.h>
|
|
|
|
namespace osquery {
|
|
namespace tables {
|
|
|
|
/**
|
|
* @brief Get a list of users given a context.
|
|
*
|
|
* If no user is provided the current user is returned.
|
|
*
|
|
* @param context The context given to a table implementation.
|
|
* @param optional all Return all users regardless of context.
|
|
* @return A complete set of rows for each user.
|
|
*/
|
|
QueryData usersFromContext(const QueryContext& context, bool all = false);
|
|
|
|
/**
|
|
* Get a list of pids given a context.
|
|
*
|
|
* If no pid is provided all pids are returned.
|
|
*
|
|
* @param context The context given to a table implementation.
|
|
* @param optional Return all pids regardless of context.
|
|
* @return A complete set of rows for each process.
|
|
*/
|
|
QueryData pidsFromContext(const QueryContext& context, bool all = true);
|
|
}
|
|
}
|