From d631cd6c454173f010748e1d7188b525f64ca85d Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Tue, 18 Sep 2007 07:14:23 +0000 Subject: [PATCH] DEVEL15-windows-afs-config-vista-uac-20070918 Mark afs_config.exe via a manifest with requestedExecutionLevel = HighestAvailable This will ensure that when Vista UAC is active, that a member of the Administrators group must run the AFS Control Panel with Administrators privileges. (cherry picked from commit 9bf29bbe1e0f8eabe4586dc3bdb5afceb2c19c30) --- src/WINNT/client_config/NTMakefile | 8 ++++++++ src/WINNT/client_config/afs_config.exe.manifest | 13 +++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 src/WINNT/client_config/afs_config.exe.manifest diff --git a/src/WINNT/client_config/NTMakefile b/src/WINNT/client_config/NTMakefile index 1cb08c343..24d31fdd9 100644 --- a/src/WINNT/client_config/NTMakefile +++ b/src/WINNT/client_config/NTMakefile @@ -21,6 +21,8 @@ RELDIR=WINNT\client_config EXEFILE = $(DESTDIR)\root.client\usr\vice\etc\afs_config.exe +MANIFEST = $(EXEFILE).manifest + EXEOBJS = \ $(OUT)\config.obj \ $(OUT)\drivemap.obj \ @@ -107,6 +109,11 @@ $(EXEOBJSc): $$(@B).c $(EXEFILE) : $(EXEOBJS) $(EXEOBJSc) $(EXERES) $(AFSDOBJS) $(EXELIBS) $(EXEGUILINK) $(VCLIBS) +!IF ("$(AFS_CL)" == "1400") + if exist $@.manifest mt.exe -manifest afs_config.exe.manifest $(MANIFEST) -out:$(MANIFEST) +!ELSE + $(COPY) afs_config.exe.manifest $(MANIFEST) +!ENDIF $(_VC_MANIFEST_EMBED_EXE) $(EXEPREP) @@ -166,6 +173,7 @@ $(OUT)\afs_config_stub.res : afs_config_stub.rc AFS_component_version_number.h clean:: $(DEL) $(COPYHEADERS) + $(DEL) $(MANIFEST) $(CD) lang $(DEL) AFS_component_version_number.h if exist $(NTLANG) $(NTLANG) en_US $(MAKECMD) /nologo /e /f NTMakefile clean diff --git a/src/WINNT/client_config/afs_config.exe.manifest b/src/WINNT/client_config/afs_config.exe.manifest new file mode 100644 index 000000000..49eee1a52 --- /dev/null +++ b/src/WINNT/client_config/afs_config.exe.manifest @@ -0,0 +1,13 @@ + + + + + + + + + + + -- 2.39.5