/[smeserver]/rpms/e-smith-manager/sme10/e-smith-manager-2.8.0-manager_suid_wrapper.patch
ViewVC logotype

Contents of /rpms/e-smith-manager/sme10/e-smith-manager-2.8.0-manager_suid_wrapper.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Thu May 12 17:09:12 2016 UTC (8 years, 6 months ago) by vip-ire
Branch: MAIN
CVS Tags: e-smith-manager-2_8_0-35_el7_sme, e-smith-manager-2_8_0-24_el7_sme, e-smith-manager-2_8_0-21_el7_sme, e-smith-manager-2_8_0-28_el7_sme, e-smith-manager-2_8_0-13_el7_sme, e-smith-manager-2_8_0-29_el7_sme, e-smith-manager-2_8_0-31_el7_sme, e-smith-manager-2_8_0-12_el7_sme, e-smith-manager-2_8_0-19_el7_sme, e-smith-manager-2_8_0-6_el7_sme, e-smith-manager-2_8_0-20_el7_sme, e-smith-manager-2_8_0-30_el7_sme, e-smith-manager-2_8_0-27_el7_sme, e-smith-manager-2_8_0-5_el7_sme, e-smith-manager-2_8_0-8_el7_sme, e-smith-manager-2_8_0-25_el7_sme, e-smith-manager-2_8_0-7_el7_sme, e-smith-manager-2_8_0-26_el7_sme, e-smith-manager-2_8_0-16_el7_sme, e-smith-manager-2_8_0-37_el7_sme, e-smith-manager-2_8_0-32_el7_sme, e-smith-manager-2_8_0-15_el7_sme, e-smith-manager-2_8_0-9_el7_sme, e-smith-manager-2_8_0-38_el7_sme, e-smith-manager-2_8_0-11_el7_sme, e-smith-manager-2_8_0-14_el7_sme, e-smith-manager-2_8_0-22_el7_sme, e-smith-manager-2_8_0-17_el7_sme, e-smith-manager-2_8_0-18_el7_sme, e-smith-manager-2_8_0-33_el7_sme, e-smith-manager-2_8_0-10_el7_sme, e-smith-manager-2_8_0-34_el7_sme, e-smith-manager-2_8_0-36_el7_sme, HEAD
* Wed May 11 2016 Daniel Berteaud <daniel@firewall-services.com> 2.8.0-5.sme
- Add a C wrapper to execute manager's cgi to replace perl-suid [SME: 9393]

1 diff -Nur e-smith-manager-2.8.0/manager.c e-smith-manager-2.8.0_bz9393/manager.c
2 --- e-smith-manager-2.8.0/manager.c 1970-01-01 01:00:00.000000000 +0100
3 +++ e-smith-manager-2.8.0_bz9393/manager.c 2016-05-11 22:37:23.610727930 +0200
4 @@ -0,0 +1,13 @@
5 +#include <stdio.h>
6 +#include <stdlib.h>
7 +#include <memory.h>
8 +#include <libgen.h>
9 +#define CGI_PATH "/etc/e-smith/web/functions/"
10 +
11 +main(int argc, char *argv[])
12 +{
13 + char cmd[50];
14 + sprintf(cmd, "%s%s", CGI_PATH, basename(argv[0]));
15 + execv(cmd, argv);
16 + return 0;
17 +}

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed