1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 * Ceph - scalable distributed file system
6 * Copyright (C) 2011 New Dream Network
7 * Copyright (C) 2016 Red Hat
9 * This is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License version 2.1, as published by the Free Software
12 * Foundation. See file COPYING.
16 #include "gtest/gtest.h"
17 #include "include/cephfs/libcephfs.h"
19 static int update_root_mode()
21 struct ceph_mount_info *admin;
22 int r = ceph_create(&admin, NULL);
25 ceph_conf_read_file(admin, NULL);
26 ceph_conf_parse_env(admin, NULL);
27 ceph_conf_set(admin, "client_permissions", "false");
28 r = ceph_mount(admin, "/");
31 r = ceph_chmod(admin, "/", 01777);
38 int main(int argc, char **argv)
40 int r = update_root_mode();
44 ::testing::InitGoogleTest(&argc, argv);
48 return RUN_ALL_TESTS();