<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Does Being in the GAC Grant FullTrust?</title><link>http://blogs.msdn.com/shawnfa/archive/2005/02/10/370743.aspx</link><description>What does being in the GAC imply about the permission set that will be assigned to an assembly? Well, it depends ... In v1.0 and 1.1, the fact that assemblies in the GAC seem to always get a FullTrust grant is actually a side effect of the fact that the</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Does Being in the GAC Grant FullTrust?</title><link>http://blogs.msdn.com/shawnfa/archive/2005/02/10/370743.aspx#370792</link><pubDate>Fri, 11 Feb 2005 02:46:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:370792</guid><dc:creator>Joe Kaplan</dc:creator><description>Very interesting.&lt;br&gt;&lt;br&gt;Will it still be possible to request the specific permissions you actually need and request optional for everything else in order to restrict your actual grant set at runtime?  Being able to count on FullTrust if you are in the GAC is actually nice, but it still seems like good security practice to only request what you need.&lt;br&gt;&lt;br&gt;Thanks!</description></item><item><title>New and Notable 71</title><link>http://blogs.msdn.com/shawnfa/archive/2005/02/10/370743.aspx#370845</link><pubDate>Fri, 11 Feb 2005 08:08:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:370845</guid><dc:creator>Sam Gentile's Blog</dc:creator><description /></item><item><title>New and Notable 71</title><link>http://blogs.msdn.com/shawnfa/archive/2005/02/10/370743.aspx#370846</link><pubDate>Fri, 11 Feb 2005 08:11:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:370846</guid><dc:creator>Sam Gentile's Blog</dc:creator><description /></item><item><title>re: Does Being in the GAC Grant FullTrust?</title><link>http://blogs.msdn.com/shawnfa/archive/2005/02/10/370743.aspx#370989</link><pubDate>Fri, 11 Feb 2005 12:27:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:370989</guid><dc:creator>Nicole Calinoiu</dc:creator><description>1.  &amp;quot;from beta 2 on, we'll automatically grant assemblies in the GAC FullTrust regardless of what the security policy says about them&amp;quot;&lt;br&gt;&lt;br&gt;Does this mean that it will be impossible to refuse full trust to an assembly in the GAC?  If so...&lt;br&gt;&lt;br&gt;a.  Why make this change? &lt;br&gt;b.  Would a rejection of permissions (via assembly-level attributes) by a GACed assembly be honoured, or would it also be swamped out under the GAC =&amp;gt; FullTrust rule?&lt;br&gt;&lt;br&gt;&lt;br&gt;2.  I'm guessing that the new GacIdentityPermission exists simply because of the introduction of GacMembershipCondition.  (i.e.: Somewhere in the design guidelines, there's probably a rule that all membership conditions should have corresponding identity permissions.)  If I'm wrong about this, could you please explain why the permission was introduced?  After all, under the new rules, all fully trusted code passes all identity permission verifications.  If all code in the GAC is to be fully trusted by definition, then a demand for GacIdentityPermission is essentially equivalent to a demand for full trust, and there would be no point in ever using the new permission.&lt;br&gt;&lt;br&gt;&lt;br&gt;3.  Has any documentation of the CAS rule modifications been published for public consumption yet?</description></item><item><title>re: Does Being in the GAC Grant FullTrust?</title><link>http://blogs.msdn.com/shawnfa/archive/2005/02/10/370743.aspx#371113</link><pubDate>Fri, 11 Feb 2005 16:37:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:371113</guid><dc:creator>Sam Gentile</dc:creator><description>What Nicole said (asked).</description></item><item><title>re: Does Being in the GAC Grant FullTrust?</title><link>http://blogs.msdn.com/shawnfa/archive/2005/02/10/370743.aspx#371265</link><pubDate>Fri, 11 Feb 2005 19:41:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:371265</guid><dc:creator>Shawn</dc:creator><description>Wow, that sparked a lot of reaction :-)&lt;br&gt;&lt;br&gt;The GAC is a machine wide assembly store which is only writable by machine administrators.  Many systems assume that GAC gets FullTrust already, and in fact it really doesn't make too much sense to try to enfoce the GAC not getting FullTrust.&lt;br&gt;&lt;br&gt;Basically our advice is, if you don't trust an assembly then you should not be putting it in the GAC, where its exposed to partially trusted code.  In addition, this simplification allows us to simplify code in other tools, especially NGEN.  And simplifying security critical code paths, can only help reduce the risk of security bugs, which is a good thing.&lt;br&gt;&lt;br&gt;That being said, assembly level declarative security still works as expected.  If you RequestRefuse or RequestOptional, even if you go into the GAC, your grant set will not be FullTrust.  (As always, I'm writing this based upon current behavior on an unreleased product.  These details could change at any point before release).&lt;br&gt;&lt;br&gt;-Shawn</description></item><item><title>re: Does Being in the GAC Grant FullTrust?</title><link>http://blogs.msdn.com/shawnfa/archive/2005/02/10/370743.aspx#371266</link><pubDate>Fri, 11 Feb 2005 19:42:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:371266</guid><dc:creator>Shawn</dc:creator><description>Sorry ... forgot that list bit of Nicole's question.  Currently the only public docs are here: &lt;a target="_new" href="http://msdn2.microsoft.com/library/default.aspx"&gt;http://msdn2.microsoft.com/library/default.aspx&lt;/a&gt;  .... but they're pretty old.  You can expect a refresh with Beta 2.&lt;br&gt;&lt;br&gt;-Shawn</description></item><item><title>What about Asp.NET applications?</title><link>http://blogs.msdn.com/shawnfa/archive/2005/02/10/370743.aspx#371645</link><pubDate>Sat, 12 Feb 2005 19:16:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:371645</guid><dc:creator>Dinis Cruz</dc:creator><description>this way you are forcing every wrapper assembly that gets published into the GAC to have Full Trust (even if only needs to have access to some resources)&lt;br&gt;&lt;br&gt;I have to say that I quite like the idea to have assemblies published into the GAC which don't run with Full Trust&lt;br&gt;&lt;br&gt;So much for defense in depth</description></item><item><title>re: Does Being in the GAC Grant FullTrust?</title><link>http://blogs.msdn.com/shawnfa/archive/2005/02/10/370743.aspx#372225</link><pubDate>Mon, 14 Feb 2005 12:23:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:372225</guid><dc:creator>Nicole Calinoiu</dc:creator><description>I've been trying to find a way to respond that adequately conveys my thoughts on this topic without appearing to shoot the messenger.  It's not working out that well, so please accept my apologies if any of the following seems unduly harsh.  My first reaction to your original posting was pretty much &amp;quot;what on earth are they thinking?!!&amp;quot; (but not quite that polite &amp;lt;g&amp;gt;), and the answers you posted to my questions haven't done much (or, to be honest, anything at all) to change that.  Since I doubt that I'll be the only one with this reaction, and there's not much of a window (if any) for feedback, I'm going to err on the side of clarity rather than kindness...&lt;br&gt;&lt;br&gt;I'm more than a little concerned about the lack of opportunity for feedback on this issue, and I doubt I'll be the only one by the time this all plays out.  If we won't be seeing documentation of these changes until beta 2, and beta 2 is apparently going to ship with a go-live license, it seems the general client base won't have an opportunity to comment on this change before it becomes quite firmly embedded in the platform.  That's not very considerate of whoever is driving the change set, particularly given that at least some system admins are likely to view this as a breaking change.&lt;br&gt;&lt;br&gt;WRT the explanation of the rationale behind the change, it seems to lean more toward excuses than reasons, and none of it sounds particularly compelling to me.  I'd be quite willing to believe that the rationale sounds better when some additional private details are thrown in.  However, even if you could share those details, I doubt that I'd be swayed toward believing that the change is worthwhile.  My suspicion is that group(s) responsible for this change have sunken a bit too deep into implementation details and have lost sight of at least part of the bigger picture.  For example, the change doesn't appear to fit in particularly well with the general goals for either CAS or the GAC.  At an even higher level, it violates the principles of least privilege and defense in depth.&lt;br&gt;&lt;br&gt;I can think of quite a few reasons for not implementing this change beyond the obvious removal of previously existing functionalty.  In the interests of avoiding any further pollution of your comments section with even longer essays on the topic, I'll see if I can't get a blog of my own set up sometime this week so that I can post those arguments elsewhere.</description></item><item><title>re: Does Being in the GAC Grant FullTrust?</title><link>http://blogs.msdn.com/shawnfa/archive/2005/02/10/370743.aspx#373234</link><pubDate>Tue, 15 Feb 2005 19:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:373234</guid><dc:creator>Leon</dc:creator><description>Will AppDomain policy override this new change like it is now in .NET 1.1? If not, then it definitely should work as it is working now! &lt;br&gt;&lt;br&gt;When I create an AppDomain and set custom security policy, I DON'T want assemblies from GAC to have full trust without any regard to what I have specified in my custom AppDomain. Thanks</description></item><item><title>re: Does Being in the GAC Grant FullTrust?</title><link>http://blogs.msdn.com/shawnfa/archive/2005/02/10/370743.aspx#373625</link><pubDate>Tue, 15 Feb 2005 21:56:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:373625</guid><dc:creator>Shawn</dc:creator><description>We're really interested in feedback about specific scenarios that you were using the ability to limit GAC assembly's grant sets.  Please respond to my other post on this topic (&lt;a target="_new" href="http://blogs.msdn.com/shawnfa/archive/2005/02/15/373604.aspx"&gt;http://blogs.msdn.com/shawnfa/archive/2005/02/15/373604.aspx&lt;/a&gt;), if you'd like to give us some feedback.&lt;br&gt;&lt;br&gt;What we're most interested in is:&lt;br&gt;* Are you limiting trust to GACed assemblies today?&lt;br&gt;* What problem are you solving by using this ability?&lt;br&gt;* Were there other possible solutions you tried, and why did you decide against them?&lt;br&gt;&lt;br&gt;Thanks!&lt;br&gt;-Shawn</description></item><item><title>FullTrust and GAC</title><link>http://blogs.msdn.com/shawnfa/archive/2005/02/10/370743.aspx#399630</link><pubDate>Mon, 21 Mar 2005 12:46:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:399630</guid><dc:creator>Prabhu Ram Prasath @ DotNetJunkies</dc:creator><description>FullTrust and GAC</description></item><item><title>The Simple Sandboxing API</title><link>http://blogs.msdn.com/shawnfa/archive/2005/02/10/370743.aspx#449052</link><pubDate>Mon, 08 Aug 2005 20:04:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:449052</guid><dc:creator>.Net Security Blog</dc:creator><description>A while back I gave some sample code to show how to setup a sandboxed AppDomain.&amp;amp;amp;nbsp; This technique...</description></item><item><title>What's New in Security for v2.0</title><link>http://blogs.msdn.com/shawnfa/archive/2005/02/10/370743.aspx#455591</link><pubDate>Wed, 24 Aug 2005 17:46:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:455591</guid><dc:creator>.Net Security Blog</dc:creator><description>There's a ton of new and enhanced security features coming with the v2.0 release of the CLR.&amp;amp;amp;nbsp; However,...</description></item><item><title>What's New in Security for v2.0</title><link>http://blogs.msdn.com/shawnfa/archive/2005/02/10/370743.aspx#458654</link><pubDate>Thu, 01 Sep 2005 00:08:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:458654</guid><dc:creator>.Net Security Blog</dc:creator><description>There's a ton of new and enhanced security features coming with the v2.0 release of the CLR.&amp;amp;amp;nbsp; However,...</description></item><item><title>Do I trust you? Well, sort of...</title><link>http://blogs.msdn.com/shawnfa/archive/2005/02/10/370743.aspx#649891</link><pubDate>Wed, 28 Jun 2006 21:02:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:649891</guid><dc:creator>I may have joined the wrong side</dc:creator><description>This post is in response to a Microsoft plan to force full trust all assemblies in the GAC regardless...</description></item><item><title>Keep it simple, smarty</title><link>http://blogs.msdn.com/shawnfa/archive/2005/02/10/370743.aspx#649894</link><pubDate>Wed, 28 Jun 2006 21:05:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:649894</guid><dc:creator>I may have joined the wrong side</dc:creator><description>This post is in response to a Microsoft plan to force full trust all assemblies in the GAC regardless...</description></item><item><title>I'm in the platform?  Little old me?</title><link>http://blogs.msdn.com/shawnfa/archive/2005/02/10/370743.aspx#649897</link><pubDate>Wed, 28 Jun 2006 21:07:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:649897</guid><dc:creator>I may have joined the wrong side</dc:creator><description>After introducing a Microsoft plan to force full trust all assemblies in the GAC, Shawn Farkas posted...</description></item><item><title>.Net面试题 </title><link>http://blogs.msdn.com/shawnfa/archive/2005/02/10/370743.aspx#9471325</link><pubDate>Thu, 12 Mar 2009 07:47:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9471325</guid><dc:creator>hystar</dc:creator><description>&lt;p&gt;1.DateTime.Parse(myString);这段代码有什么问题？A：区域信息即CultureInfo没有指定。如果不指定的话，它将采用默认的机器级的设置（见：控制面板-&lt;/p&gt;
</description></item><item><title> NET Security Blog Does Being in the GAC Grant FullTrust | Paid Surveys</title><link>http://blogs.msdn.com/shawnfa/archive/2005/02/10/370743.aspx#9661727</link><pubDate>Sat, 30 May 2009 03:35:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9661727</guid><dc:creator> NET Security Blog Does Being in the GAC Grant FullTrust | Paid Surveys</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://paidsurveyshub.info/story.php?title=net-security-blog-does-being-in-the-gac-grant-fulltrust"&gt;http://paidsurveyshub.info/story.php?title=net-security-blog-does-being-in-the-gac-grant-fulltrust&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>