From: Yuan Sun <sunyuan3@huawei.com>
To: jstancek@redhat.com
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] filecaps: Remove unnecessary c.c file.
Date: Wed, 1 Jul 2015 13:24:54 +0800 [thread overview]
Message-ID: <559379A6.5040408@huawei.com> (raw)
In-Reply-To: <1435727815-9484-1-git-send-email-sunyuan3@huawei.com>
I forgot to modify .gitignore file. Please see V2.
On 2015/7/1 13:16, Yuan Sun wrote:
> The c.c file is the same as check_simple_capset.c except config.h
> is included in check_simple_capset.c. Moreover, it is not correct
> to use HAVE_SYS_CAPABILITY_H without including config.h.
>
> Signed-off-by: Yuan Sun <sunyuan3@huawei.com>
> ---
> testcases/kernel/security/filecaps/c.c | 47 ----------------------------------
> 1 file changed, 47 deletions(-)
> delete mode 100644 testcases/kernel/security/filecaps/c.c
>
> diff --git a/testcases/kernel/security/filecaps/c.c b/testcases/kernel/security/filecaps/c.c
> deleted file mode 100644
> index 511e673..0000000
> --- a/testcases/kernel/security/filecaps/c.c
> +++ /dev/null
> @@ -1,47 +0,0 @@
> -/******************************************************************************/
> -/* */
> -/* Copyright (c) International Business Machines Corp., 2008 */
> -/* */
> -/* This program is free software; you can redistribute it and/or modify */
> -/* it under the terms of the GNU General Public License as published by */
> -/* the Free Software Foundation; either version 2 of the License, or */
> -/* (at your option) any later version. */
> -/* */
> -/* This program is distributed in the hope that it will be useful, */
> -/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
> -/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See */
> -/* the GNU General Public License for more details. */
> -/* */
> -/* You should have received a copy of the GNU General Public License */
> -/* along with this program; if not, write to the Free Software */
> -/* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */
> -/* */
> -/******************************************************************************/
> -
> -#include <stdio.h>
> -#if HAVE_SYS_CAPABILITY_H
> -#include <linux/types.h>
> -#include <sys/capability.h>
> -#endif
> -
> -int main(void)
> -{
> -
> -#ifdef HAVE_LIBCAP
> - cap_t caps, caps2;
> - int ret;
> -
> - caps = cap_from_text("cap_setpcap+ep");
> - caps2 = cap_from_text("cap_setpcap+ep");
> - ret = cap_set_proc(caps);
> - ret = cap_compare(caps, caps2);
> - printf("Caps were %sthe same\n", ret ? "not " : "");
> -
> - cap_free(caps);
> - cap_free(caps2);
> - return ret;
> -#else
> - printf("System doesn't support full POSIX capabilities.\n");
> - return 1;
> -#endif
> -}
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
prev parent reply other threads:[~2015-07-01 5:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-01 5:16 [LTP] [PATCH] filecaps: Remove unnecessary c.c file Yuan Sun
2015-07-01 5:24 ` Yuan Sun [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=559379A6.5040408@huawei.com \
--to=sunyuan3@huawei.com \
--cc=jstancek@redhat.com \
--cc=ltp-list@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox