#include "locking/leases_db.h"
#include "lib/util/string_wrappers.h"
+#ifdef HAVE_JANSSON
+#include <jansson.h>
+#include "audit_logging.h" /* various JSON helpers */
+#include "auth/common_auth.h"
+#endif /* HAVE_JANSSON */
+
#define SMB_MAXPIDS 2048
static uid_t Ucrit_uid = 0; /* added by OH */
static struct server_id Ucrit_pid[SMB_MAXPIDS]; /* Ugly !!! */ /* added by OH */
bool ok;
state.first = true;
+ state.json_output = false;
state.resolve_uids = false;
smb_init_locale();
sec_init();
+#ifdef HAVE_JANSSON
+ state.root_json = json_new_object();
+#endif /* HAVE_JANSSON */
+
if (getuid() != geteuid()) {
fprintf(stderr, "smbstatus should not be run setuid\n");
ret = 1;
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifdef HAVE_JANSSON
+#include <jansson.h>
+#include "audit_logging.h" /* various JSON helpers */
+#include "auth/common_auth.h"
+#endif /* HAVE_JANSSON */
+
#ifndef STATUS_H
#define STATUS_H
struct traverse_state {
+ bool json_output;
bool first;
bool resolve_uids;
+#ifdef HAVE_JANSSON
+ struct json_object root_json;
+#endif /* HAVE_JANSSON */
};
enum crypto_degree {