Is this a public road? If so, use an approved design as per your state's/province's department of transportation. If not, you may want to use a standard design anyway, for the following reasons:
[ul]
[li] Standardized parts will make repair easier[/li]
[li] Less liability should someone be injured in a crash with the rail[/li]
[li]Predesigned details for posts in rock[/li]
[/ul]
I think NYSDOT will drill a hole and backfill around the post with compacted gravel. If the rock is at the surface and sound enough, you might be able to treat it like a retaining wall, with heavy steel bridge rail posts bolted to anchors.
Just remember that eventually, you will have to replace posts, due to crash damage or rot.
"...students of traffic are beginning to realize the false economy of mechanically controlled traffic, and hand work by trained officers will again prevail." - Wm. Phelps Eno, ca. 1928
"I'm searching for the questions, so my answers will make sense." - Stephen Brust