{"action":"created","comment":{"url":"https://api.github.com/repos/rear/rear/pulls/comments/52736060","id":52736060,"diff_hunk":"@@ -0,0 +1,5 @@\n+# include utilities needed to set capabilities\n+if [ \"$BACKUP_CAP\" == \"y\" ] ; then\n+    REQUIRED_PROGS=(\"${REQUIRED_PROGS[@]}\" setcap getcap)\n+    Log \"Tools to set capabilities.\"","path":"usr/share/rear/prep/GNU/Linux/31_include_cap_uitls.sh","position":4,"original_position":4,"commit_id":"ab44ea49b87eceeafd042aa78cc6faa6456552c5","original_commit_id":"ab44ea49b87eceeafd042aa78cc6faa6456552c5","user":{"login":"mattihautameki","id":14105791,"avatar_url":"https://avatars.githubusercontent.com/u/14105791?v=3","gravatar_id":"","url":"https://api.github.com/users/mattihautameki","html_url":"https://github.com/mattihautameki","followers_url":"https://api.github.com/users/mattihautameki/followers","following_url":"https://api.github.com/users/mattihautameki/following{/other_user}","gists_url":"https://api.github.com/users/mattihautameki/gists{/gist_id}","starred_url":"https://api.github.com/users/mattihautameki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattihautameki/subscriptions","organizations_url":"https://api.github.com/users/mattihautameki/orgs","repos_url":"https://api.github.com/users/mattihautameki/repos","events_url":"https://api.github.com/users/mattihautameki/events{/privacy}","received_events_url":"https://api.github.com/users/mattihautameki/received_events","type":"User","site_admin":false},"body":"For sure. Thats a careless mistake. ","created_at":"2016-02-12T12:34:51Z","updated_at":"2016-02-12T12:34:51Z","html_url":"https://github.com/rear/rear/pull/771#discussion_r52736060","pull_request_url":"https://api.github.com/repos/rear/rear/pulls/771","_links":{"self":{"href":"https://api.github.com/repos/rear/rear/pulls/comments/52736060"},"html":{"href":"https://github.com/rear/rear/pull/771#discussion_r52736060"},"pull_request":{"href":"https://api.github.com/repos/rear/rear/pulls/771"}}},"pull_request":{"url":"https://api.github.com/repos/rear/rear/pulls/771","id":59162899,"html_url":"https://github.com/rear/rear/pull/771","diff_url":"https://github.com/rear/rear/pull/771.diff","patch_url":"https://github.com/rear/rear/pull/771.patch","issue_url":"https://api.github.com/repos/rear/rear/issues/771","number":771,"state":"open","locked":false,"title":"Added a very simply way to backup up capabilities.","user":{"login":"mattihautameki","id":14105791,"avatar_url":"https://avatars.githubusercontent.com/u/14105791?v=3","gravatar_id":"","url":"https://api.github.com/users/mattihautameki","html_url":"https://github.com/mattihautameki","followers_url":"https://api.github.com/users/mattihautameki/followers","following_url":"https://api.github.com/users/mattihautameki/following{/other_user}","gists_url":"https://api.github.com/users/mattihautameki/gists{/gist_id}","starred_url":"https://api.github.com/users/mattihautameki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattihautameki/subscriptions","organizations_url":"https://api.github.com/users/mattihautameki/orgs","repos_url":"https://api.github.com/users/mattihautameki/repos","events_url":"https://api.github.com/users/mattihautameki/events{/privacy}","received_events_url":"https://api.github.com/users/mattihautameki/received_events","type":"User","site_admin":false},"body":"Since capabilities are not backuped with tar I implemented a file based backup using getcap and setcap.This commit was tested on SLES12 and RHEL7. Both use capabilities instead of SUID for ping, arping, etc. ","created_at":"2016-02-12T11:41:23Z","updated_at":"2016-02-12T12:34:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4318fde3af1cb546413e38dc20d1aca3c40f5f34","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rear/rear/pulls/771/commits","review_comments_url":"https://api.github.com/repos/rear/rear/pulls/771/comments","review_comment_url":"https://api.github.com/repos/rear/rear/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rear/rear/issues/771/comments","statuses_url":"https://api.github.com/repos/rear/rear/statuses/ab44ea49b87eceeafd042aa78cc6faa6456552c5","head":{"label":"mattihautameki:master","ref":"master","sha":"ab44ea49b87eceeafd042aa78cc6faa6456552c5","user":{"login":"mattihautameki","id":14105791,"avatar_url":"https://avatars.githubusercontent.com/u/14105791?v=3","gravatar_id":"","url":"https://api.github.com/users/mattihautameki","html_url":"https://github.com/mattihautameki","followers_url":"https://api.github.com/users/mattihautameki/followers","following_url":"https://api.github.com/users/mattihautameki/following{/other_user}","gists_url":"https://api.github.com/users/mattihautameki/gists{/gist_id}","starred_url":"https://api.github.com/users/mattihautameki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattihautameki/subscriptions","organizations_url":"https://api.github.com/users/mattihautameki/orgs","repos_url":"https://api.github.com/users/mattihautameki/repos","events_url":"https://api.github.com/users/mattihautameki/events{/privacy}","received_events_url":"https://api.github.com/users/mattihautameki/received_events","type":"User","site_admin":false},"repo":{"id":51512468,"name":"rear","full_name":"mattihautameki/rear","owner":{"login":"mattihautameki","id":14105791,"avatar_url":"https://avatars.githubusercontent.com/u/14105791?v=3","gravatar_id":"","url":"https://api.github.com/users/mattihautameki","html_url":"https://github.com/mattihautameki","followers_url":"https://api.github.com/users/mattihautameki/followers","following_url":"https://api.github.com/users/mattihautameki/following{/other_user}","gists_url":"https://api.github.com/users/mattihautameki/gists{/gist_id}","starred_url":"https://api.github.com/users/mattihautameki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattihautameki/subscriptions","organizations_url":"https://api.github.com/users/mattihautameki/orgs","repos_url":"https://api.github.com/users/mattihautameki/repos","events_url":"https://api.github.com/users/mattihautameki/events{/privacy}","received_events_url":"https://api.github.com/users/mattihautameki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mattihautameki/rear","description":"Relax-and-Recover - Linux bare metal disaster recovery and system migration solution (cfr. mksysb, ignite)","fork":true,"url":"https://api.github.com/repos/mattihautameki/rear","forks_url":"https://api.github.com/repos/mattihautameki/rear/forks","keys_url":"https://api.github.com/repos/mattihautameki/rear/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mattihautameki/rear/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mattihautameki/rear/teams","hooks_url":"https://api.github.com/repos/mattihautameki/rear/hooks","issue_events_url":"https://api.github.com/repos/mattihautameki/rear/issues/events{/number}","events_url":"https://api.github.com/repos/mattihautameki/rear/events","assignees_url":"https://api.github.com/repos/mattihautameki/rear/assignees{/user}","branches_url":"https://api.github.com/repos/mattihautameki/rear/branches{/branch}","tags_url":"https://api.github.com/repos/mattihautameki/rear/tags","blobs_url":"https://api.github.com/repos/mattihautameki/rear/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mattihautameki/rear/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mattihautameki/rear/git/refs{/sha}","trees_url":"https://api.github.com/repos/mattihautameki/rear/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mattihautameki/rear/statuses/{sha}","languages_url":"https://api.github.com/repos/mattihautameki/rear/languages","stargazers_url":"https://api.github.com/repos/mattihautameki/rear/stargazers","contributors_url":"https://api.github.com/repos/mattihautameki/rear/contributors","subscribers_url":"https://api.github.com/repos/mattihautameki/rear/subscribers","subscription_url":"https://api.github.com/repos/mattihautameki/rear/subscription","commits_url":"https://api.github.com/repos/mattihautameki/rear/commits{/sha}","git_commits_url":"https://api.github.com/repos/mattihautameki/rear/git/commits{/sha}","comments_url":"https://api.github.com/repos/mattihautameki/rear/comments{/number}","issue_comment_url":"https://api.github.com/repos/mattihautameki/rear/issues/comments{/number}","contents_url":"https://api.github.com/repos/mattihautameki/rear/contents/{+path}","compare_url":"https://api.github.com/repos/mattihautameki/rear/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mattihautameki/rear/merges","archive_url":"https://api.github.com/repos/mattihautameki/rear/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mattihautameki/rear/downloads","issues_url":"https://api.github.com/repos/mattihautameki/rear/issues{/number}","pulls_url":"https://api.github.com/repos/mattihautameki/rear/pulls{/number}","milestones_url":"https://api.github.com/repos/mattihautameki/rear/milestones{/number}","notifications_url":"https://api.github.com/repos/mattihautameki/rear/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mattihautameki/rear/labels{/name}","releases_url":"https://api.github.com/repos/mattihautameki/rear/releases{/id}","deployments_url":"https://api.github.com/repos/mattihautameki/rear/deployments","created_at":"2016-02-11T12:13:04Z","updated_at":"2016-02-11T12:13:06Z","pushed_at":"2016-02-12T09:25:44Z","git_url":"git://github.com/mattihautameki/rear.git","ssh_url":"git@github.com:mattihautameki/rear.git","clone_url":"https://github.com/mattihautameki/rear.git","svn_url":"https://github.com/mattihautameki/rear","homepage":"http://relax-and-recover.org/","size":3798,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rear:master","ref":"master","sha":"5cb56da55bfa3f10963178844d8e7764b86f74d6","user":{"login":"rear","id":1389578,"avatar_url":"https://avatars.githubusercontent.com/u/1389578?v=3","gravatar_id":"","url":"https://api.github.com/users/rear","html_url":"https://github.com/rear","followers_url":"https://api.github.com/users/rear/followers","following_url":"https://api.github.com/users/rear/following{/other_user}","gists_url":"https://api.github.com/users/rear/gists{/gist_id}","starred_url":"https://api.github.com/users/rear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rear/subscriptions","organizations_url":"https://api.github.com/users/rear/orgs","repos_url":"https://api.github.com/users/rear/repos","events_url":"https://api.github.com/users/rear/events{/privacy}","received_events_url":"https://api.github.com/users/rear/received_events","type":"Organization","site_admin":false},"repo":{"id":3449791,"name":"rear","full_name":"rear/rear","owner":{"login":"rear","id":1389578,"avatar_url":"https://avatars.githubusercontent.com/u/1389578?v=3","gravatar_id":"","url":"https://api.github.com/users/rear","html_url":"https://github.com/rear","followers_url":"https://api.github.com/users/rear/followers","following_url":"https://api.github.com/users/rear/following{/other_user}","gists_url":"https://api.github.com/users/rear/gists{/gist_id}","starred_url":"https://api.github.com/users/rear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rear/subscriptions","organizations_url":"https://api.github.com/users/rear/orgs","repos_url":"https://api.github.com/users/rear/repos","events_url":"https://api.github.com/users/rear/events{/privacy}","received_events_url":"https://api.github.com/users/rear/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rear/rear","description":"Relax-and-Recover - Linux bare metal disaster recovery and system migration solution (cfr. mksysb, ignite)","fork":false,"url":"https://api.github.com/repos/rear/rear","forks_url":"https://api.github.com/repos/rear/rear/forks","keys_url":"https://api.github.com/repos/rear/rear/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rear/rear/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rear/rear/teams","hooks_url":"https://api.github.com/repos/rear/rear/hooks","issue_events_url":"https://api.github.com/repos/rear/rear/issues/events{/number}","events_url":"https://api.github.com/repos/rear/rear/events","assignees_url":"https://api.github.com/repos/rear/rear/assignees{/user}","branches_url":"https://api.github.com/repos/rear/rear/branches{/branch}","tags_url":"https://api.github.com/repos/rear/rear/tags","blobs_url":"https://api.github.com/repos/rear/rear/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rear/rear/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rear/rear/git/refs{/sha}","trees_url":"https://api.github.com/repos/rear/rear/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rear/rear/statuses/{sha}","languages_url":"https://api.github.com/repos/rear/rear/languages","stargazers_url":"https://api.github.com/repos/rear/rear/stargazers","contributors_url":"https://api.github.com/repos/rear/rear/contributors","subscribers_url":"https://api.github.com/repos/rear/rear/subscribers","subscription_url":"https://api.github.com/repos/rear/rear/subscription","commits_url":"https://api.github.com/repos/rear/rear/commits{/sha}","git_commits_url":"https://api.github.com/repos/rear/rear/git/commits{/sha}","comments_url":"https://api.github.com/repos/rear/rear/comments{/number}","issue_comment_url":"https://api.github.com/repos/rear/rear/issues/comments{/number}","contents_url":"https://api.github.com/repos/rear/rear/contents/{+path}","compare_url":"https://api.github.com/repos/rear/rear/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rear/rear/merges","archive_url":"https://api.github.com/repos/rear/rear/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rear/rear/downloads","issues_url":"https://api.github.com/repos/rear/rear/issues{/number}","pulls_url":"https://api.github.com/repos/rear/rear/pulls{/number}","milestones_url":"https://api.github.com/repos/rear/rear/milestones{/number}","notifications_url":"https://api.github.com/repos/rear/rear/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rear/rear/labels{/name}","releases_url":"https://api.github.com/repos/rear/rear/releases{/id}","deployments_url":"https://api.github.com/repos/rear/rear/deployments","created_at":"2012-02-15T13:44:45Z","updated_at":"2016-02-10T14:30:53Z","pushed_at":"2016-02-12T11:41:23Z","git_url":"git://github.com/rear/rear.git","ssh_url":"git@github.com:rear/rear.git","clone_url":"https://github.com/rear/rear.git","svn_url":"https://github.com/rear/rear","homepage":"http://relax-and-recover.org/","size":3839,"stargazers_count":130,"watchers_count":130,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":84,"mirror_url":null,"open_issues_count":61,"forks":84,"open_issues":61,"watchers":130,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rear/rear/pulls/771"},"html":{"href":"https://github.com/rear/rear/pull/771"},"issue":{"href":"https://api.github.com/repos/rear/rear/issues/771"},"comments":{"href":"https://api.github.com/repos/rear/rear/issues/771/comments"},"review_comments":{"href":"https://api.github.com/repos/rear/rear/pulls/771/comments"},"review_comment":{"href":"https://api.github.com/repos/rear/rear/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rear/rear/pulls/771/commits"},"statuses":{"href":"https://api.github.com/repos/rear/rear/statuses/ab44ea49b87eceeafd042aa78cc6faa6456552c5"}}}}