* Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
- * Copyright (c) 2012, Whamcloud, Inc.
+ * Copyright (c) 2012, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
-#ifdef HAVE_CATAMOUNT_DATA_H
-#include <catamount/data.h>
-#endif
#include "lutil.h"
-unsigned int libcfs_subsystem_debug = ~0 - (S_LNET | S_LND);
-unsigned int libcfs_debug = 0;
struct task_struct *current;
#endif
}
-int cfs_curproc_is_in_groups(gid_t gid)
+int in_group_p(gid_t gid)
{
int i;
}
cfs_cap_t cfs_curproc_cap_pack(void) {
- return cfs_current()->cap_effective;
+ return current->cap_effective;
}
void cfs_curproc_cap_unpack(cfs_cap_t cap) {
- cfs_current()->cap_effective = cap;
+ current->cap_effective = cap;
}
int cfs_capable(cfs_cap_t cap)